code: def test_get_config_header(
      cfg_text: str, expected: Any, sep: str
  ) -> None:
      cfg_text = cfg_text.format(sep=sep)
      if isinstance(expected, dict):
          header = ConfigSource._get_header_dict(cfg_text)
          assert header == expected
      else:
          with expected:
              ConfigSource._get_header_dict(cfg_text)
  
imports: import copy
  import re
  import sys
  import zipfile
  from typing import Any, List
  from pytest import mark, param, raises
  from hydra._internal.config_repository import ConfigRepository
  from hydra._internal.config_search_path_impl import ConfigSearchPathImpl
  from hydra._internal.core_plugins.file_config_source import FileConfigSource
  from hydra._internal.core_plugins.importlib_resources_config_source import ImportlibResourcesConfigSource
  from hydra._internal.core_plugins.structured_config_source import StructuredConfigSource
  from hydra.core.default_element import GroupDefault, InputDefault
  from hydra.core.plugins import Plugins
  from hydra.core.singleton import Singleton
  from hydra.plugins.config_source import ConfigSource
  from hydra.test_utils.config_source_common_tests import ConfigSourceTestSuite
  from hydra.test_utils.test_utils import chdir_hydra_root
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_config_header(cfg_text, expected, sep) without return types