code: def test_default_config_file_with_invalid_schema(get_data_dir):
      config_file_path = os.path.join(
          get_data_dir, "invalid_config_file.yaml"
      )
      os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"] = config_file_path
      with pytest.raises(exceptions.ValidationError):
          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 8 for calling a global function with example usage: test_default_config_file_with_invalid_schema(get_data_dir) without return types