human
I wrote the below code

    def wrapper(*args, **kwargs):
        if (not is_admin_context(args[0])):
            raise exception.AdminRequired()
        return f(*args, **kwargs)
    return wrapper

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def require_admin_context(f):