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

    def test_login(self, **kwargs):
        'Checks    if    the    user    for    the    current    session    is    logged    in.\n                                If    not,    redirects    the    user    to    the    home    page.\n                                '
        if (not self.user_id):
            self.redirect('/')
            return
        return handler(self, **kwargs)
    test_login.__wrapped__ = True
    return test_login

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

def require_user_id_else_redirect_to_homepage(handler):