def unpack(value):
    if isinstance(value, tuple):
        if len(value) == 0:
            return '', 200, {}

    data, code, headers = _unpack(value[0])

    if isinstance(data, tuple):
        return data[0], code, headers

    return data, code, headers
Creates a new tool palette.
dataset/ETHPy150Open tooxie/shiva-server/shiva/utils.py/unpack--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/null/action/tool_palette.py/ToolPalette.__init__