code: def test_config_repository_list(
      self,
      hydra_restore_singletons: Any,
      path: str,
      config_path: str,
      expected: List[InputDefault],
  ) -> None:
      Plugins.instance()
      config_search_path = create_config_search_path(path)
      repo = ConfigRepository(config_search_path=config_search_path)
      ret = repo.load_config(config_path)
      assert ret is not None
      assert ret.defaults_list == expected
  
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 3 for calling the TestConfigRepository obj's underlying member method code with example usage: obj.test_config_repository_list(hydra_restore_singletons, path, config_path, expected) without return types