code: def _build_model_config(self, config):
      model = config.model
      if model is None:
          raise KeyError("Required argument 'model' not passed")
      model_cls = registry.get_model_class(model)
  
      if model_cls is None:
          warning = f"No model named '{model}' has been registered"
          warnings.warn(warning)
          return OmegaConf.create()
  
      default_model_config_path = model_cls.config_path()
  
      if default_model_config_path is None:
          warning = "Model {}'s class has no default configuration provided".format(
              model
          )
          warnings.warn(warning)
          return OmegaConf.create()
  
      return load_yaml(default_model_config_path)
  
imports: import collections
  import json
  import logging
  import os
  import warnings
  from ast import literal_eval
  from typing import List
  import torch
  from mmf.common.registry import registry
  from mmf.utils.env import import_user_module
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path, get_mmf_root
  from omegaconf import DictConfig, errors, OmegaConf
label_desc: Use image node_id 7 for calling the Configuration obj's underlying member method code with example usage: obj._build_model_config(config) and returns: load_yaml, OmegaConf, OmegaConf