human
I wrote the below code

    def decorator(f):
        @gen.engine
        def wrapper(self, *args, **kwargs):
            assert (level in [None, 'root', 'support'])
            self._permissions = (yield gen.Task(self.QueryAdminPermissions))
            if (level == 'root'):
                self.CheckIsRoot()
            elif (level == 'support'):
                self.CheckIsSupport()
            f(self, *args, **kwargs)
        return wrapper
    return decorator

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

def require_permission(level=None):