def METHOD_NAME(
    bootstrap_runtime, run_pre_exec_script, write_failure, _exit_process, validate_python
):
    runtime_err = RuntimeEnvironmentError("some failure reason")
    bootstrap_runtime.side_effect = runtime_err
    bootstrap.main()
    validate_python.assert_called_once_with(TEST_PYTHON_VERSION, TEST_JOB_CONDA_ENV)
    run_pre_exec_script.assert_not_called()
    bootstrap_runtime.assert_called()
    write_failure.assert_called_with(str(runtime_err))
    _exit_process.assert_called_with(1)