code: def test_end_to_end_prepare_failure(tmpdir):
      expected_return_code = 1
      assert (
          main(
              test_workload="exit 0",
              test_workload_timeout=10,
              test_no_raise_on_timeout=False,
              prepare_commands=["exit 0", "exit 1"],
              prepare_commands_timeouts=[1, 1],
              **cloud_storage_kwargs,
          )
          == expected_return_code
      )
      _check_output_json(None, [0, 1])
  
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 12 for calling a global function with example usage: test_end_to_end_prepare_failure(tmpdir) without return types