code: def test_main_success_remote_job_with_root_user(
      change_dir_permission,
      bootstrap_remote,
      run_pre_exec_script,
      bootstrap_runtime,
      validate_python,
      _exit_process,
  ):
      bootstrap.main(args_for_remote())
  
      change_dir_permission.assert_not_called()
      validate_python.assert_called_once_with(
          TEST_PYTHON_VERSION, TEST_JOB_CONDA_ENV
      )
      bootstrap_remote.assert_called_once_with(
          TEST_PYTHON_VERSION,
          TEST_JOB_CONDA_ENV,
          _DependencySettings(TEST_DEPENDENCY_FILE_NAME),
      )
      run_pre_exec_script.assert_not_called()
      bootstrap_runtime.assert_not_called()
      _exit_process.assert_called_with(0)
  
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 3 for calling a global function with example usage: test_main_success_remote_job_with_root_user(change_dir_permission, bootstrap_remote, run_pre_exec_script, bootstrap_runtime, validate_python, _exit_process) without return types