input: Write a function to create a dictionary where the keys are the elements of a given list and the values are the product of each element with itself. If the list is empty, return an empty dictionary.
  
  def product_of_list(list):
      output = {}
      for element in list:
          output[element] = element * element
      return output
  
  assert product_of_list([7, 8, 5]) == {7: 49, 8: 64, 5: 25}
  assert product_of_list([3, 4, 1, 2]) == {3: 9, 4: 16, 1: 1, 2: 4}
  assert product_of_list([]) == {}
  assert product_of_list([0, -5, 10]) == {0: 0, -5: 25, 10: 100}
output: def product_of_list(list):
      output = {}
      for element in list:
          output[element] = element * element
      return output