def _convert_listlike(arg, unit=None, errors='raise', name=None):
    'Convert a list of objects to a timedelta index object.'
    if (isinstance(arg, (list, tuple)) or (not hasattr(arg, 'dtype'))):
        arg = np.array(list(arg), dtype=object)
    try:
        value = sequence_to_td64ns(arg, unit=unit, errors=errors, copy=False)[0]
    except ValueError:
        if (errors == 'ignore'):
            return arg
        else:
            raise
    from pandas import TimedeltaIndex
    value = TimedeltaIndex(value, unit='ns', name=name)
    return value
Convert a list of objects to a timedelta index object.
def _convert_listlike(arg, unit=None, errors='raise', name=None):
    
    if (isinstance(arg, (list, tuple)) or (not hasattr(arg, 'dtype'))):
        arg = np.array(list(arg), dtype=object)
    try:
        value = sequence_to_td64ns(arg, unit=unit, errors=errors, copy=False)[0]
    except ValueError:
        if (errors == 'ignore'):
            return arg
        else:
            raise
    from pandas import TimedeltaIndex
    value = TimedeltaIndex(value, unit='ns', name=name)
    return value