code: def test_loaded_defaults_list(
      config_path: str, expected_list: List[InputDefault]
  ) -> None:
      repo = create_repo()
      result = repo.load_config(config_path=config_path)
      assert result is not None
      assert result.defaults_list == expected_list
  
imports: import re
  from textwrap import dedent
  from typing import Any, List, Optional
  from pytest import mark, param, raises, warns
  from hydra import version
  from hydra._internal.defaults_list import create_defaults_list
  from hydra.core.default_element import ConfigDefault, GroupDefault, InputDefault, ResultDefault
  from hydra.core.override_parser.overrides_parser import OverridesParser
  from hydra.core.plugins import Plugins
  from hydra.errors import ConfigCompositionException
  from hydra.test_utils.test_utils import chdir_hydra_root
  from tests.defaults_list import create_repo
label_desc: Use image node_id 1 for calling a global function with example usage: test_loaded_defaults_list(config_path, expected_list) without return types