code: def test_apply_overrides_to_config(
      input_cfg: Any, overrides: List[str], expected: Any
  ) -> None:
      cfg = OmegaConf.create(input_cfg)
      OmegaConf.set_struct(cfg, True)
      parser = OverridesParser.create()
      parsed = parser.parse_overrides(overrides=overrides)
  
      if isinstance(expected, dict):
          ConfigLoaderImpl._apply_overrides_to_config(
              overrides=parsed, cfg=cfg
          )
          assert cfg == expected
      else:
          with expected:
              ConfigLoaderImpl._apply_overrides_to_config(
                  overrides=parsed, cfg=cfg
              )
  
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 9 for calling a global function with example usage: test_apply_overrides_to_config(input_cfg, overrides, expected) without return types