def _wrap(value):
    if is_primitive(value):
        return value
    if isinstance(value, dict) or isinstance(value, set) or is_namedtuple(value):
        return value
    elif isinstance(value, collections.Iterable):
        return Sequence(value)
    else:
        return value
Returns:
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/_wrap--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/league.py/League.tier