code: def test_preset_to_config():
      problem_types = list_automm_presets()
      for per_type in problem_types:
          for model_quality in ALL_MODEL_QUALITIES:
              hyperparameters, _ = get_automm_presets(
                  per_type, model_quality
              )
              config = get_config(
                  problem_type=per_type,
                  presets=model_quality,
                  extra=["matcher", "distiller"],
              )
              for k, v in hyperparameters.items():
                  assert OmegaConf.select(config, k) == v
  
file_path: autogluon/multimodal/tests/unittests/others/test_presets.py
imports: import pytest
  from omegaconf import OmegaConf
  from autogluon.multimodal import MultiModalPredictor
  from autogluon.multimodal.constants import ALL_MODEL_QUALITIES, DATA, DISTILLER, ENVIRONMENT, FEATURE_EXTRACTION, MODEL, OPTIMIZATION, ZERO_SHOT_IMAGE_CLASSIFICATION
  from autogluon.multimodal.presets import get_automm_presets, get_basic_automm_config, list_automm_presets
  from autogluon.multimodal.problem_types import PROBLEM_TYPES_REG
  from autogluon.multimodal.utils import get_config
label_desc: Use image node_id 2 for calling a global function with example usage: test_preset_to_config() without return types