code: def main(sys_args=None):
      """Entry point for bootstrap script"""
  
      exit_code = DEFAULT_FAILURE_CODE
  
      try:
          args = _parse_args(sys_args)
          client_python_version = args.client_python_version
          job_conda_env = args.job_conda_env
          pipeline_execution_id = args.pipeline_execution_id
          dependency_settings = _DependencySettings.from_string(
              args.dependency_settings
          )
          func_step_workspace = args.func_step_s3_dir
  
          conda_env = job_conda_env or os.getenv(
              "SAGEMAKER_JOB_CONDA_ENV"
          )
  
          RuntimeEnvironmentManager()._validate_python_version(
              client_python_version, conda_env
          )
  
          user = getpass.getuser()
          if user != "root":
              log_message = (
                  "The job is running on non-root user: %s. Adding write permissions to the "
                  "following job output directories: %s."
              )
              logger.info(log_message, user, JOB_OUTPUT_DIRS)
              RuntimeEnvironmentManager().change_dir_permission(
                  dirs=JOB_OUTPUT_DIRS, new_permission="777"
              )
  
          if pipeline_execution_id:
              _bootstrap_runtime_env_for_pipeline_step(
                  client_python_version,
                  func_step_workspace,
                  conda_env,
                  dependency_settings,
              )
          else:
              _bootstrap_runtime_env_for_remote_function(
                  client_python_version, conda_env, dependency_settings
              )
  
          exit_code = SUCCESS_EXIT_CODE
      except Exception as e:  # pylint: disable=broad-except
          logger.exception(
              "Error encountered while bootstrapping runtime environment: %s",
              e,
          )
  
          _write_failure_reason_file(str(e))
      finally:
          sys.exit(exit_code)
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/runtime_environment/bootstrap_runtime_environment.py
imports: from __future__ import absolute_import
  import argparse
  import getpass
  import sys
  import os
  import shutil
  import pathlib
label_desc: Use image node_id 1 for calling a global function with example usage: main(sys_args) without return types