code: def validate_sagemaker_config(sagemaker_config: dict = None):
      """Validates whether a given dictionary adheres to the schema.
  
      The schema is defined at
      ``sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA``.
  
      Args:
          sagemaker_config: A dictionary containing default values for the
                  SageMaker Python SDK. (default: None).
      """
      jsonschema.validate(
          sagemaker_config, SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/config/config.py
imports: from __future__ import absolute_import, annotations
  import pathlib
  import os
  from typing import List
  import boto3
  import yaml
  import jsonschema
  from platformdirs import site_config_dir, user_config_dir
  from botocore.utils import merge_dicts
  from six.moves.urllib.parse import urlparse
  from sagemaker.config.config_schema import SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA
  from sagemaker.config.config_utils import non_repeating_log_factory, get_sagemaker_config_logger
label_desc: Use image node_id 2 for calling a global function with example usage: validate_sagemaker_config(sagemaker_config) without return types