code: def _bootstrap_runtime_env_for_remote_function(
      client_python_version: str,
      conda_env: str = None,
      dependency_settings: _DependencySettings = None,
  ):
      """Bootstrap runtime environment for remote function invocation.
  
      Args:
          client_python_version (str): Python version at the client side.
          conda_env (str): conda environment to be activated. Default is None.
          dependency_settings (dict): Settings for installing dependencies.
      """
  
      workspace_unpack_dir = _unpack_user_workspace()
      if not workspace_unpack_dir:
          logger.info("No workspace to unpack and setup.")
          return
  
      _handle_pre_exec_scripts(workspace_unpack_dir)
  
      _install_dependencies(
          workspace_unpack_dir,
          conda_env,
          client_python_version,
          REMOTE_FUNCTION_WORKSPACE,
          dependency_settings,
      )
  
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 2 for calling a global function with example usage: _bootstrap_runtime_env_for_remote_function(client_python_version, conda_env, dependency_settings) without return types