code: def list(
      self, config_path: str, results_filter: Optional[ObjectType]
  ) -> List[str]:
      groups: Dict[str, List[str]] = {
          "": ["dataset", "level1", "optimizer"],
          "dataset": [],
          "optimizer": [],
          "level1": ["level2"],
          "level1/level2": [],
      }
      configs: Dict[str, List[str]] = {
          "": ["config_without_group", "dataset"],
          "dataset": ["cifar10", "imagenet"],
          "optimizer": ["adam", "nesterov"],
          "level1": [],
          "level1/level2": ["nested1", "nested2"],
          "configs_with_defaults_list": [
              "global_package",
              "group_package",
          ],
      }
      if results_filter is None:
          return sorted(set(groups[config_path] + configs[config_path]))
      elif results_filter == ObjectType.GROUP:
          return groups[config_path]
      elif results_filter == ObjectType.CONFIG:
          return configs[config_path]
      else:
          raise ValueError()
  
file_path: hydra/examples/plugins/example_configsource_plugin/hydra_plugins/example_configsource_plugin/example_configsource_plugin.py
imports: from typing import Any, Dict, List, Optional
  from hydra.core.object_type import ObjectType
  from hydra.plugins.config_source import ConfigLoadError, ConfigResult, ConfigSource
  from omegaconf import OmegaConf
label_desc: Use image node_id 7 for calling the ConfigSourceExample obj's underlying member method code with example usage: obj.list(config_path, results_filter) and returns: sorted, groups, configs