<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _wrap(value):
 """ Wraps the passed value in a Sequence if it is not a primitive. If it is a string argument it is expanded to a list of characters. 1 ['a', 'b', 'c'] functional.pipeline.Sequence :param value: value to wrap :return: wrapped or not wrapped value """

    if is_primitive(value):
        return value
    if isinstance(value, (dict, set)) or is_namedtuple(value):
        return value
    elif isinstance(value, collections.Iterable):
        try:
            if type(value).__name__ == 'DataFrame':
                import pandas
                if isinstance(value, pandas.DataFrame):
                    return Sequence(value.values)
        except ImportError: # pragma: no cover
            pass

        return Sequence(value)
    else:
        return value