input: Write a function that creates a Python generator which yields each element from a given list.
  
  def list_generator(input_list):
      for item in input_list:
          yield item
  
  assert [item for item in list_generator([1, 3, 5, 7, 9])] == [1, 3, 5, 7, 9]
  assert [item for item in list_generator([]) ] == []
  assert [item for item in list_generator([-1, -2, 0, 1, 2])] == [-1, -2, 0, 1, 2]
  assert list(list_generator([1, 3, 5, 7, 9]))[2] == 5
output: def list_generator(input_list):
      for item in input_list:
          yield item