def unpack(value):
    """Return a three tuple of data, code, and headers"""
    if not isinstance(value, tuple):
        return value, 200, {}

    try:
        data, code, headers = value
        return data, code, headers
    except ValueError:
        pass

    try:
        data, code = value
        return data, code, {}
    except __HOLE__:
        pass

    return value, 200, {}
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/utils/__init__.py/unpack