human
I wrote the below code

    def test_super_admin(self, **kwargs):
        'Checks    if    the    user    is    logged    in    and    is    a    super    admin.'
        if (not self.user_id):
            raise self.NotLoggedInException
        if (not current_user_services.is_current_user_super_admin()):
            raise self.UnauthorizedUserException('%s    is    not    a    super    admin    of    this    application', self.user_id)
        return handler(self, **kwargs)
    test_super_admin.__wrapped__ = True
    return test_super_admin

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

def can_access_admin_page(handler):