input: Write a function to remove duplicates from a list and return the modified list in the same order. If the list is empty, return an empty list.
  def remove_duplicates(my_list):
   return list(dict.fromkeys(my_list))
  
  my_list = [1, 2, 3, 4, 3, 2, 1]
  assert remove_duplicates(my_list) == [1, 2, 3, 4]
  
  my_list = []
  assert remove_duplicates(my_list) == []
output: def remove_duplicates(my_list):
      return list(dict.fromkeys(my_list))