code: def test_presets():
      problem_types = list_automm_presets()
      for per_type in problem_types:
          for model_quality in ALL_MODEL_QUALITIES:
              (
                  hyperparameters,
                  hyperparameter_tune_kwargs,
              ) = get_automm_presets(per_type, model_quality)
  
      # test non-existing types
      non_exist_types = ["hello", "haha"]
      for per_type in non_exist_types:
          for model_quality in ALL_MODEL_QUALITIES:
              with pytest.raises(ValueError):
                  (
                      hyperparameters,
                      hyperparameter_tune_kwargs,
                  ) = get_automm_presets(per_type, model_quality)
  
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 1 for calling a global function with example usage: test_presets() without return types