def METHOD_NAME(path, live_results):
    if GENERATE_TEST_FILES:
        with open(path, "w") as live_results_file:
            live_results_json = live_results.dict()
            json.dump(live_results_json, live_results_file, indent=4)
    return PruningSensitivityResult.parse_file(path)