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

    def decorator(f):
        @functools.wraps(f)
        def decorated_function(req):
            if req.accept:
                best_match = req.accept.best_match(types)
                if (not best_match):
                    type_string = ',    '.join(types)
                    raise webob.exc.HTTPNotAcceptable((_('Only    %(type)s    is    provided') % {'type': type_string}), json_formatter=json_error_formatter)
            return f(req)
        return decorated_function
    return decorator

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

def check_accept(*types):