def METHOD_NAME(*args, **kwargs):
    if args[0] == JOB_URL:
        return MockResponse(json.loads(JOB_DATA), 200)  # error response
    elif args[0] == CODES_URL:
        return MockResponse(json.loads('{"dummy":"dummy"}'), 500)
    return MockResponse(None, 404)