code: def _get_model_configs(dataset_name: str) -> Dict[str, Dict]:
      """Returns all model configs for the specified dataset.
  
      Model configs are named <dataset_name>_<config_name>.yaml
      """
      import importlib.resources
  
      config_filenames = [
          f
          for f in importlib.resources.contents(model_configs)
          if f.endswith(".yaml") and f.startswith(dataset_name)
      ]
      configs = {}
      for config_filename in config_filenames:
          basename = os.path.splitext(config_filename)[0]
          config_name = basename[len(dataset_name) + 1 :]
          configs[config_name] = _load_model_config(config_filename)
      return configs
  
file_path: ludwig/ludwig/datasets/utils.py
imports: import os
  from functools import lru_cache
  from typing import Dict
  import yaml
  from ludwig.api_annotations import PublicAPI
  from ludwig.datasets import model_configs
label_desc: Use image node_id 2 for calling a global function with example usage: _get_model_configs(dataset_name) and returns: configs