def _find_duplicates(iterable):
  """Returns a list of duplicate entries found in `iterable`."""
  duplicates = []
  seen = set()
  for item in iterable:
    if item in seen:
      duplicates.append(item)
    else:
      seen.add(item)
  return duplicates