class_docstr: Runtime Environment Manager class to manage runtime environment.
class_docstr_tok: ["Runtime","Environment","Manager","class","to","manage","runtime","environment","."]
docstr: Bootstraps the runtime environment by installing the additional dependencies if any.
  
  Args:
      local_dependencies_file (str): path where dependencies file exists.
      conda_env (str): conda environment to be activated. Default is None.
  
  Returns: None
code: def bootstrap(
      self,
      local_dependencies_file: str,
      client_python_version: str,
      conda_env: str = None,
  ):
      """Bootstraps the runtime environment by installing the additional dependencies if any.
  
      Args:
          local_dependencies_file (str): path where dependencies file exists.
          conda_env (str): conda environment to be activated. Default is None.
  
      Returns: None
      """
  
      if local_dependencies_file.endswith(".txt"):
          if conda_env:
              self._install_req_txt_in_conda_env(
                  conda_env, local_dependencies_file
              )
              self._write_conda_env_to_file(conda_env)
  
          else:
              self._install_requirements_txt(
                  local_dependencies_file, _python_executable()
              )
  
      elif local_dependencies_file.endswith(
          ".yml"
      ) or local_dependencies_file.endswith(".yaml"):
          if conda_env:
              self._update_conda_env(conda_env, local_dependencies_file)
          else:
              conda_env = "sagemaker-runtime-env"
              self._create_conda_env(conda_env, local_dependencies_file)
              self._validate_python_version(
                  client_python_version, conda_env
              )
          self._write_conda_env_to_file(conda_env)
  
imports: from __future__ import absolute_import
  import logging
  import sys
  import shlex
  import os
  import subprocess
  import time
  import dataclasses
  import json
label_desc: Use image node_id 5 for calling the RuntimeEnvironmentManager obj's underlying member method code with example usage: obj.bootstrap(local_dependencies_file, client_python_version, conda_env) without return types