code: def test_default_config_file_when_path_is_provided_as_environment_variable(
      get_data_dir,
      valid_config_with_all_the_scopes,
      base_config_with_schema,
  ):
      os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"] = get_data_dir
      # This will try to load config.yaml file from that directory if present.
      expected_config = base_config_with_schema
      expected_config["SageMaker"] = valid_config_with_all_the_scopes
      assert expected_config == load_sagemaker_config(repeat_log=True)
      del os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"]
  
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 11 for calling a global function with example usage: test_default_config_file_when_path_is_provided_as_environment_variable(get_data_dir, valid_config_with_all_the_scopes, base_config_with_schema) without return types