class_docstr: A SageMaker ``Session`` class for Local Mode.
  
  This class provides alternative Local Mode implementations for the functionality of
  :class:`~sagemaker.session.Session`.
docstr: Setter of the local mode config
docstr_tok: ["Setter","of","the","local","mode","config"]
code: def config(self, value: Dict | None):
      """Setter of the local mode config"""
      if value is not None:
          try:
              jsonschema.validate(
                  value, SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA
              )
          except jsonschema.ValidationError as e:
              logger.error("Failed to validate the local mode config")
              raise e
          self._config = value
      else:
          self._config = value
  
      # update the runtime client on config changed
      if getattr(self, "sagemaker_runtime_client", None):
          self.sagemaker_runtime_client.config = self._config
  
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 3 for calling the LocalSession obj's underlying member method code with example usage: obj.config(value) without return types