code: def test_load_config_file_with_schema_validation(
      self, hydra_restore_singletons: Any, path: str
  ) -> None:
      with ConfigStoreWithProvider("this_test") as cs:
          cs.store(name="config", node=TopLevelConfig)
          cs.store(
              group="db", name="mysql", node=MySQLConfig, package="db"
          )
  
      config_loader = ConfigLoaderImpl(
          config_search_path=create_config_search_path(path)
      )
  
      msg = dedent(
          """\
            'config' is validated against ConfigStore schema with the same name.
            This behavior is deprecated in Hydra 1.1 and will be removed in Hydra 1.2.
            See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/automatic_schema_matching for migration instructions."""
      )
      with warns(UserWarning, match=re.escape(msg)):
          cfg = config_loader.load_configuration(
              config_name="config",
              overrides=["+db=mysql"],
              run_mode=RunMode.RUN,
          )
  
      with open_dict(cfg):
          del cfg["hydra"]
      assert cfg == {
          "normal_yaml_config": True,
          "db": {
              "driver": "mysql",
              "host": "???",
              "port": "???",
              "user": "omry",
              "password": "secret",
          },
      }
  
imports: import re
  from dataclasses import dataclass, field
  from textwrap import dedent
  from typing import Any, List
  from omegaconf import MISSING, OmegaConf, ValidationError, open_dict
  from pytest import mark, param, raises, warns
  from hydra import version
  from hydra._internal.config_loader_impl import ConfigLoaderImpl
  from hydra._internal.utils import create_config_search_path
  from hydra.core.config_store import ConfigStore, ConfigStoreWithProvider
  from hydra.core.override_parser.overrides_parser import OverridesParser
  from hydra.core.utils import env_override, setup_globals
  from hydra.errors import ConfigCompositionException, HydraException, MissingConfigException
  from hydra.test_utils.test_utils import chdir_hydra_root
  from hydra.types import RunMode
  from tests.instantiate import UserGroup
label_desc: Use image node_id 13 for calling the TestConfigLoader obj's underlying member method code with example usage: obj.test_load_config_file_with_schema_validation(hydra_restore_singletons, path) without return types