def unpack(iterable, cls):
    """ Unpack the value

    Parameters
    ----------
    iterable
    cls

    Returns
    -------

    """
    if len(iterable) == 1:
        return iterable.pop()
    else:
        return cls(iterable)
