def is_list(l, scalars=(Mapping, string_t), iters=(Iterable,)):
    return isinstance(l, iters) and not isinstance(l, scalars or ())
Return true if the object is iterable (but not
dataset/ETHPy150Open celery/kombu/kombu/utils/functional.py/is_list