code: def _load_model_config_from_yaml(
      config_path, strict=True
  ) -> DictConfig:
      default_cfg = get_default_args(GenericModel)
      cfg = _load_model_config_from_yaml_rec(default_cfg, config_path)
      return cfg
  
imports: import os
  import unittest
  import torch
  from omegaconf import DictConfig, OmegaConf
  from pytorch3d.implicitron.models.generic_model import GenericModel
  from pytorch3d.implicitron.models.renderer.base import EvaluationMode
  from pytorch3d.implicitron.tools.config import expand_args_fields, get_default_args
  from pytorch3d.renderer.cameras import look_at_view_transform, PerspectiveCameras
  from tests.common_testing import get_pytorch3d_dir
  from .common_resources import provide_resnet34
label_desc: Use image node_id 2 for calling a global function with example usage: _load_model_config_from_yaml(config_path, strict) and returns: cfg