def flatten(it):
    if it:
        try:
            return reduce(operator.add,
                          map(force_list, (x for x in it if x)))
        except __HOLE__:
            return []
    return it
dataset/ETHPy150Open celery/cell/cell/utils/__init__.py/flatten