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

    @require_admin
    def require_authorized_admin_wrapper_fn_central(request, *args, **kwargs):
        '\n                                The    check    for    distributed    servers    already    exists    (require_login),    so    just    use    that    below.\n                                All    this    nuance    is    for    the    central    server    only.\n                                '
        from centralserver.central.models import Organization
        logged_in_user = request.user
        assert (not logged_in_user.is_anonymous()), 'Wrapped    by    login_required!'
        if logged_in_user.is_superuser:
            return handler(request, *args, **kwargs)
        org = None
        org_id = kwargs.get('org_id')
        zone = None
        zone_id = kwargs.get('zone_id')
        facility = facility_from_request(request=request, *args, **kwargs)
        device = None
        device_id = kwargs.get('device_id')
        user = get_user_from_request(request=request, *args, **kwargs)
        if user:
            if (not facility):
                facility = user.facility
        if device_id:
            device = get_object_or_404(Device, pk=device_id)
            if (not zone_id):
                zone = device.get_zone()
                if (not zone):
                    raise PermissionDenied(_('You    requested    device    information    for    a    device    without    a    sharing    network.        Only    super    users    can    do    this!'))
                zone_id = zone.pk
        if facility:
            if (not zone_id):
                zone = facility.get_zone()
                if (not zone):
                    raise PermissionDenied(_('You    requested    facility    information    for    a    facility    with    no    sharing    network.        Only    super    users    can    do    this!'))
                zone_id = zone.pk
        if (zone_id and (zone_id != 'new')):
            zone = get_object_or_404(Zone, pk=zone_id)
            if (not org_id):
                for...

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

def require_authorized_admin(handler):