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

    def _handle_filters(filters, request):
        target = dict()
        if filters:
            for item in filters:
                if (item in request.params):
                    target[item] = request.params[item]
        LOG.debug('RBAC:    Adding    query    filter    params    (%s)', ',    '.join([('%s=%s' % (item, target[item])) for item in target]))
        return target
    def _filterprotected(f):
        @functools.wraps(f)
        def wrapper(self, request, **kwargs):
            filter_attr = _handle_filters(filters, request)
            check_function = authorization.check_protection
            if (('callback' in callback) and (callback['callback'] is not None)):
                check_function = callback['callback']
            protected_wrapper(self, f, check_function, request, filter_attr, **kwargs)
            return f(self, request, filters, **kwargs)
        return wrapper
    return _filterprotected

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

def filterprotected(*filters, **callback):