code: def test_config():
      cur_path = os.path.dirname(os.path.abspath(__file__))
      model_config_path = os.path.join(
          cur_path,
          "../../../src/autogluon/multimodal/configs/model/default.yaml",
      )
      model_config = OmegaConf.load(model_config_path)
      data_config_path = os.path.join(
          cur_path,
          "../../../src/autogluon/multimodal/configs/data/default.yaml",
      )
      data_config = OmegaConf.load(data_config_path)
      optimization_config_path = os.path.join(
          cur_path,
          "../../../src/autogluon/multimodal/configs/optimization/default.yaml",
      )
      optimization_config = OmegaConf.load(optimization_config_path)
      environemnt_config_path = os.path.join(
          cur_path,
          "../../../src/autogluon/multimodal/configs/environment/default.yaml",
      )
      environemnt_config = OmegaConf.load(environemnt_config_path)
      config_gt = OmegaConf.merge(
          model_config,
          data_config,
          optimization_config,
          environemnt_config,
      )
  
      # test yaml path
      config = {
          MODEL: model_config_path,
          DATA: data_config_path,
          OPTIMIZATION: optimization_config_path,
          ENVIRONMENT: environemnt_config_path,
      }
      config = get_config(config=config)
      assert config == config_gt
  
      # test DictConfg
      config = {
          MODEL: model_config,
          DATA: data_config,
          OPTIMIZATION: optimization_config,
          ENVIRONMENT: environemnt_config,
      }
      config = get_config(config=config)
      assert config == config_gt
  
      # test dict
      model_config = OmegaConf.to_container(model_config)
      assert isinstance(model_config, dict)
  
      data_config = OmegaConf.to_container(data_config)
      assert isinstance(data_config, dict)
  
      optimization_config = OmegaConf.to_container(optimization_config)
      assert isinstance(optimization_config, dict)
  
      environemnt_config = OmegaConf.to_container(environemnt_config)
      assert isinstance(environemnt_config, dict)
  
      config = {
          MODEL: model_config,
          DATA: data_config,
          OPTIMIZATION: optimization_config,
          ENVIRONMENT: environemnt_config,
      }
      config = get_config(config=config)
      assert config == config_gt
  
      # test default string
      config = {
          MODEL: f"default",
          DATA: "default",
          OPTIMIZATION: "default",
          ENVIRONMENT: "default",
      }
      config = get_config(config=config)
      assert config == config_gt
  
file_path: autogluon/multimodal/tests/unittests/others_2/test_config.py
imports: import os
  import pytest
  from omegaconf import OmegaConf
  from autogluon.multimodal.constants import DATA, ENVIRONMENT, MODEL, OPTIMIZATION
  from autogluon.multimodal.utils import get_config
label_desc: Use image node_id 1 for calling a global function with example usage: test_config() without return types