code: def use_config(config: str):
      """
      Temporary load the deprecated test configuration.
      """
      sections, proxies = remove_all_configurations()
      conf.read(
          str(Path(__file__).parents[1] / "config_templates" / config)
      )
      try:
          yield
      finally:
          restore_all_configurations(sections, proxies)
  
file_path: airflow/tests/utils/test_config.py
imports: from __future__ import annotations
  import logging
  from contextlib import contextmanager
  from pathlib import Path
  from airflow.configuration import conf
label_desc: Use image node_id 3 for calling a global function with example usage: use_config(config) without return types