def _split(value):
    """Split input/output value into two values."""
    if isinstance(value, str):
        # iterable, but not meant for splitting
        return value, value
    try:
        invalue, outvalue = value
    except TypeError:
        invalue = outvalue = value
    except __HOLE__:
        raise ValueError("Only single values and pairs are allowed")
    return invalue, outvalue
dataset/ETHPy150Open bastibe/PySoundCard/pysoundcard.py/_split