code: def test_logging_when_overridden_admin_is_found_and_default_user_config_not_found(
      get_data_dir, caplog
  ):
      logger.propagate = True
      caplog.set_level(logging.DEBUG, logger=logger.name)
      os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"] = get_data_dir
      load_sagemaker_config(repeat_log=True)
      assert (
          "Fetched defaults config from location: {}".format(
              get_data_dir
          )
          in caplog.text
      )
      assert (
          "Not applying SDK defaults from location: {}".format(
              _DEFAULT_USER_CONFIG_FILE_PATH
          )
          in caplog.text
      )
      assert (
          "Unable to load the config file from the location: {}".format(
              _DEFAULT_USER_CONFIG_FILE_PATH
          )
          in caplog.text
      )
      del os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"]
      logger.propagate = False
  
imports: from __future__ import absolute_import
  import os
  import pytest
  import yaml
  import logging
  from mock import Mock, MagicMock, patch, call
  from sagemaker.config.config import load_local_mode_config, load_sagemaker_config, logger, non_repeating_log_factory, _DEFAULT_ADMIN_CONFIG_FILE_PATH, _DEFAULT_USER_CONFIG_FILE_PATH, _DEFAULT_LOCAL_MODE_CONFIG_FILE_PATH
  from jsonschema import exceptions
  from yaml.constructor import ConstructorError
label_desc: Use image node_id 19 for calling a global function with example usage: test_logging_when_overridden_admin_is_found_and_default_user_config_not_found(get_data_dir, caplog) without return types