def reduce_list(data_set):
    """ Reduce duplicate items in a list and preserve order """
    seen = set()
    return [item for item in data_set if
            item not in seen and not seen.add(item)]
dataset/ETHPy150Open mkdocs/mkdocs/mkdocs/utils/__init__.py/reduce_list/original