old_contents: # .. an example with a for loop ..
  
  @profile
  def test_1():
      a = [1] * (10 ** 6)
      b = [2] * (2 * 10 ** 7)
      del b
  
      for i in range(2):
          a = [1] * (10 ** 6)
          b = [2] * (2 * 10 ** 7)
          del b
      return a
  
  @profile
  def test_2():
      a = {}
      for i in range(10000):
          a[i] =  i + 1
      return
  
  if __name__ == '__main__':
      test_1()
      test_2()
  
new_contents: # .. an example with a for loop ..
  
  @profile
  def test_1():
      a = {}
      for i in range(10000):
          a[i] =  i + 1
      return
  
  @profile
  def test_2():
      a = [1] * (10 ** 6)
      b = [2] * (2 * 10 ** 7)
      del b
  
      for i in range(2):
          a = [1] * (10 ** 6)
          b = [2] * (2 * 10 ** 7)
          del b
      return a
  
  if __name__ == '__main__':
      test_1()
      test_2()
  
subject: test refactoring