code: def dedupe_list(seq):
      
      seen = set()
      return [x for x in seq if not (x in seen or seen.add(x))]
docs: Utility function to remove duplicates from a list
      :param seq: The sequence (list) to deduplicate
      :return: A list with original duplicates removed