def METHOD_NAME(model_name, file, expected_result):
    """
    Full circle test with torchserve
    """
    with open(Path(CURR_FILE_PATH) / "test_data" / file, "rb") as f:
        response = requests.post(
            url=f"http://localhost:8080/predictions/{model_name}", data=f
        )
    assert response.status_code == 200
    result_entries = json.loads(response.text)
    assert [result_entries] == expected_result