def METHOD_NAME(response, expected_output):
    predict_raw_response = RawResponseMock(*response)
    predict_response = HttpPredictResponse(predict_raw_response)
    output = predict_response.to_dict()
    assert (outputsEqual(output, expected_output))