human
Complete the below
def assert_json_response(response, status_code, body, headers=None, body_cmp=operator.eq):

    ''''Assert JSON response has the expected status_code, body, and headers.
    Asserts that the response\'s content-type is application/json.
    body_cmp is a callable that takes the JSON-decoded response body and
    expected body and returns a boolean stating whether the comparison
    succeeds.
    body_cmp(json.loads(response.data.decode(\'utf-8\')), body)'
    '''

What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    headers = dict((headers or {}))
    headers['Content-Type'] = 'application/json'
    def json_cmp(response_body, body):
        return body_cmp(json.loads(response_body.decode('utf-8')), body)
    assert_response(response, status_code, body, headers, json_cmp)