def duplicates(L):
    """
    Return a list of the duplicates occurring in a given list L.

    If there are no duplicates, return empty list.
    """

    dupes = list()
    seen = set()
    for x in L:
        if x in seen:
            dupes.append(x)
        seen.add(x)
    return dupes