input: 
  from typing import List
  
  def remove_duplicates(array: List[int]) -> List[int]:
      """Remove all duplicates from the given list of integers and return the list 
      without duplicates.
      >>> remove_duplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> remove_duplicates([1, 1, 1, 1])
      [1]
      """
  
output:     seen = set()
      result = []
      for num in array:
          if num not in seen:
              seen.add(num)
              result.append(num)
      return result