input: Write a function to remove duplicate elements from a list using built-in Python functions and return the list in the same order as the input.
  
  def removeDuplicates(array):
      return list(dict.fromkeys(array))
  
  assert removeDuplicates([1, 2, 2, 3, 4, 4, 5])==[1, 2, 3, 4, 5]
  assert removeDuplicates([1, 1, 1, 1, 1])==[1]
  assert removeDuplicates([])==[]
  assert removeDuplicates([5, 4, 3, 2, 1])==[5, 4, 3, 2, 1]
output: def removeDuplicates(array):
      return list(dict.fromkeys(array))