human
Here's a good function header given the following:
I wrote the below code

    def test_can_access_moderator_page(self, **kwargs):
        if (not self.user_id):
            raise base.UserFacingExceptions.NotLoggedInException
        if (role_services.ACTION_ACCESS_MODERATOR_PAGE in self.actions):
            return handler(self, **kwargs)
        raise self.UnauthorizedUserException('You    do    not    have    credentials    to    access    moderator    page.')
    test_can_access_moderator_page.__wrapped__ = True
    return test_can_access_moderator_page

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

def can_access_moderator_page(handler):