def deduplicate_with_order(seq):
    seen = set()
    seen_add = seen.add
    return [x for x in seq if not (x in seen or seen_add(x))]
Deduplicate a sequence while preserving the order
dataset/ETHPy150Open coursera/dataduct/dataduct/database/parsers/select_query.py/deduplicate_with_order