input: Write a function to remove duplicates from a given list and return the list with unique elements in the same order as they appear.
  
  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(['a', 'b', 'a', 'c', 'b'])==['a', 'b', 'c']
  assert remove_duplicates([10, 20, 30, 40, 30, 20, 10])==[10, 20, 30, 40]
  assert remove_duplicates([])==[]
  assert remove_duplicates(['apple', 'banana', 'apple', 'banana', 'cherry'])==['apple', 'banana', 'cherry']
output: def remove_duplicates(my_list):
      return list(dict.fromkeys(my_list))