class_docstr: A SageMaker ``Session`` class for Local Mode.
  
  This class provides alternative Local Mode implementations for the functionality of
  :class:`~sagemaker.session.Session`.
class_docstr_tok: ["A","SageMaker","``","Session","``","class","for","Local","Mode",".","This","class","provides","alternative","Local","Mode","implementations","for","the","functionality","of",":","class",":","`","~sagemaker.session.Session","`","."]
docstr: Create a Local SageMaker Session.
  
  Args:
      boto_session (boto3.session.Session): The underlying Boto3 session which AWS service
          calls are delegated to (default: None). If not provided, one is created with
          default AWS configuration chain.
      s3_endpoint_url (str): Override the default endpoint URL for Amazon S3, if set
          (default: None).
      disable_local_code (bool): Set ``True`` to override the default AWS configuration
          chain to disable the ``local.local_code`` setting, which may not be supported for
          some SDK features (default: False).
      sagemaker_config: A dictionary containing default values for the
          SageMaker Python SDK. (default: None). The dictionary must adhere to the schema
          defined at `~sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA`.
          If sagemaker_config is not provided and configuration files exist (at the default
          paths for admins and users, or paths set through the environment variables
          SAGEMAKER_ADMIN_CONFIG_OVERRIDE and SAGEMAKER_USER_CONFIG_OVERRIDE),
          a new dictionary will be generated from those configuration files. Alternatively,
          this dictionary can be generated by calling
          :func:`~sagemaker.config.load_sagemaker_config` and then be provided to the
          Session.
      default_bucket_prefix (str): The default prefix to use for S3 Object Keys. When
          objects are saved to the Session's default_bucket, the Object Key used will
          start with the default_bucket_prefix. If not provided here or within
          sagemaker_config, no additional prefix will be added.
code: def __init__(
      self,
      boto_session=None,
      default_bucket=None,
      s3_endpoint_url=None,
      disable_local_code=False,
      sagemaker_config: dict = None,
      default_bucket_prefix=None,
  ):
      """Create a Local SageMaker Session.
  
      Args:
          boto_session (boto3.session.Session): The underlying Boto3 session which AWS service
              calls are delegated to (default: None). If not provided, one is created with
              default AWS configuration chain.
          s3_endpoint_url (str): Override the default endpoint URL for Amazon S3, if set
              (default: None).
          disable_local_code (bool): Set ``True`` to override the default AWS configuration
              chain to disable the ``local.local_code`` setting, which may not be supported for
              some SDK features (default: False).
          sagemaker_config: A dictionary containing default values for the
              SageMaker Python SDK. (default: None). The dictionary must adhere to the schema
              defined at `~sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA`.
              If sagemaker_config is not provided and configuration files exist (at the default
              paths for admins and users, or paths set through the environment variables
              SAGEMAKER_ADMIN_CONFIG_OVERRIDE and SAGEMAKER_USER_CONFIG_OVERRIDE),
              a new dictionary will be generated from those configuration files. Alternatively,
              this dictionary can be generated by calling
              :func:`~sagemaker.config.load_sagemaker_config` and then be provided to the
              Session.
          default_bucket_prefix (str): The default prefix to use for S3 Object Keys. When
              objects are saved to the Session's default_bucket, the Object Key used will
              start with the default_bucket_prefix. If not provided here or within
              sagemaker_config, no additional prefix will be added.
      """
      self.s3_endpoint_url = s3_endpoint_url
      # We use this local variable to avoid disrupting the __init__->_initialize API of the
      # parent class... But overwriting it after constructor won't do anything, so prefix _ to
      # discourage external use:
      self._disable_local_code = disable_local_code
  
      super(LocalSession, self).__init__(
          boto_session=boto_session,
          default_bucket=default_bucket,
          sagemaker_config=sagemaker_config,
          default_bucket_prefix=default_bucket_prefix,
      )
  
      if platform.system() == "Windows":
          logger.warning(
              "Windows Support for Local Mode is Experimental"
          )
  
imports: from __future__ import absolute_import, annotations
  import logging
  import platform
  from datetime import datetime
  from typing import Dict
  import boto3
  from botocore.exceptions import ClientError
  import jsonschema
  from sagemaker.config import SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA, SESSION_DEFAULT_S3_BUCKET_PATH, SESSION_DEFAULT_S3_OBJECT_KEY_PREFIX_PATH, load_local_mode_config, load_sagemaker_config, validate_sagemaker_config
  from sagemaker.local.image import _SageMakerContainer
  from sagemaker.local.utils import get_docker_host
  from sagemaker.local.entities import _LocalEndpointConfig, _LocalEndpoint, _LocalModel, _LocalProcessingJob, _LocalTrainingJob, _LocalTransformJob, _LocalPipeline
  from sagemaker.session import Session
  from sagemaker.utils import get_config_value, _module_import_error, resolve_value_from_config, format_tags
label_desc: Use image node_id 1 to create a new LocalSession object from inherited base classes: Session with example: obj = LocalSession(boto_session, default_bucket, s3_endpoint_url, disable_local_code, sagemaker_config, default_bucket_prefix)