def nub(it):
    seen = set()
    for v in it:
        h = hash(v)
        if h in seen:
            continue
        seen.add(h)
        yield v
Dedups an iterable in arbitrary order.
dataset/ETHPy150Open dossier/dossier.web/dossier/web/label_folders.py/nub