human
I wrote the below code

    def require_login_wrapper_fn(request, *args, **kwargs):
        if getattr(request, 'is_logged_in', False):
            return handler(request, *args, **kwargs)
        raise PermissionDenied(_('You    must    be    logged    in    to    access    this    page.'))
    return require_login_wrapper_fn

What's a good function header?

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

def require_login(handler):