code: def _check_output_json(
      expected_return_code, prepare_return_codes=None
  ):
      with open(OUTPUT_JSON_FILENAME, "r") as fp:
          output = json.load(fp)
      assert output["return_code"] == expected_return_code
      assert output["prepare_return_codes"] == (
          prepare_return_codes or []
      )
      assert output["uploaded_results"] is False
      assert output["collected_metrics"] is False
      assert output["uploaded_metrics"] is False
  
file_path: ray/release/ray_release/tests/test_anyscale_job_wrapper.py
imports: import pytest
  import sys
  import json
  from ray_release.command_runner._anyscale_job_wrapper import main, run_bash_command, TIMEOUT_RETURN_CODE, OUTPUT_JSON_FILENAME
label_desc: Use image node_id 4 for calling a global function with example usage: _check_output_json(expected_return_code, prepare_return_codes) without return types