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

    def wrapped(self, req, id, body, *args, **kwargs):
        if ((len(body) == 1) and ('host' in body)):
            host = body['host']
        else:
            raise exc.HTTPBadRequest
        return fn(self, req, id, host, *args, **kwargs)
    return wrapped

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

def get_host_from_body(fn):