human
I wrote the below code

    def new_fn(req, resp, exception):
        (media_type, body) = old_fn(req, exception)
        if (body is not None):
            resp.body = body
            resp.content_type = media_type
    return new_fn

What's a good function header?

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

def wrap_old_error_serializer(old_fn):