input: Write a function to remove duplicates from a list. The function should take a list as input and return a new list with all the duplicates removed, preserving the original order of the elements.
  
  def remove_duplicates(my_list):
      return list(dict.fromkeys(my_list))
  
  assert remove_duplicates([1, 2, 3, 4, 3, 2, 1])==[1, 2, 3, 4]
  assert remove_duplicates([5, 6, 7, 7, 8, 6, 5])==[5, 6, 7, 8]
  assert remove_duplicates(['a', 'b', 'a', 'c', 'b'])==['a', 'b', 'c']
  assert remove_duplicates([1])==[1]
  assert remove_duplicates([])==[]
output: def remove_duplicates(my_list):
      return list(dict.fromkeys(my_list))