code: def _find_duplicates(seq):
      
      seen = set()
      return [element for element in seq
              if seq.count(element) > 1
              and element not in seen and seen.add(element) is None]
docs: Find the duplicate elements from a sequence.