input: Write a function to create a Python function that takes in a list and prints a dictionary with the elements and the product of each element. Define the function as `product_of_list` and provide the necessary inputs and outputs.
  
  
  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}
  
output: def product_of_list(list):
      output = {}
      for element in list:
          output[element] = element * element
      return output