human
I wrote the below code

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

What's a good function header?

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

def can_send_moderator_emails(handler):