human
I wrote the below code

    def require_superuser_wrapper_fn(request, *args, **kwargs):
        if getattr(request.user, 'is_superuser', False):
            return handler(request, *args, **kwargs)
        else:
            raise PermissionDenied(_('You    must    be    logged    in    as    a    superuser    to    access    this    endpoint.'))
    return require_superuser_wrapper_fn

What's a good function header?

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

def require_superuser(handler):