human
I wrote the below code

    def outer(func):
        @functools.wraps(func)
        def wrapped(self, context, target, *args, **kwargs):
            check_policy(context, func.__name__, target, scope)
            return func(self, context, target, *args, **kwargs)
        return wrapped
    return outer

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

def policy_decorator(scope):