def get_duplicates(iterable):
    """Find and return any duplicates in the iterable."""
    duplicates = {}

    for i in iterable:
        duplicates.setdefault(i, 0)
        duplicates[i] += 1

    return [d for d in duplicates if duplicates[d] > 1]