def unpack(*arguments):
    """
    Unpack arguments to be used in methods wrapped
    """
    def decorator(func):
        def wrapper(_self, data, **kwargs):
            data = smart_parse(data)
            try:
                args = [data[item] for item in arguments]
            except __HOLE__:
                raise MissingField(item)

            kwargs["_arguments"] = arguments

            func(_self, *args, **kwargs)
        return wrapper
    return decorator
dataset/ETHPy150Open sihrc/tornado-boilerplate/indico/utils/__init__.py/unpack