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

    @six.wraps(handler)
    def handle_stack_method(controller, req, tenant_id, **kwargs):
        if ((req.context.tenant_id != tenant_id) and (not req.context.is_admin)):
            raise exc.HTTPForbidden()
        allowed = req.context.policy.enforce(context=req.context, action=handler.__name__, scope=controller.REQUEST_SCOPE)
        if (not allowed):
            raise exc.HTTPForbidden()
        return handler(controller, req, **kwargs)
    return handle_stack_method

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

def policy_enforce(handler):