def METHOD_NAME(f):
    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            info = next(arg for arg in args if isinstance(arg, ResolveInfo))
            return func(info.METHOD_NAME, *args, **kwargs)
        return wrapper
    return decorator