code: def test_main_failure_remote_job_with_root_user(
      change_dir_permission,
      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(args_for_remote())
  
      change_dir_permission.assert_not_called()
      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)
  
imports: from __future__ import absolute_import
  from mock import patch
  from mock.mock import MagicMock
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentError, _DependencySettings
  import sagemaker.remote_function.runtime_environment.bootstrap_runtime_environment
  import pathlib
label_desc: Use image node_id 5 for calling a global function with example usage: test_main_failure_remote_job_with_root_user(change_dir_permission, bootstrap_runtime, run_pre_exec_script, write_failure, _exit_process, validate_python) without return types