code: def _load_sub_conf(meta_dict, target_type):
      class_conf = target_type()
      for key, value in meta_dict.items():
          camel_key = format.camel_to_snake(key)
          if camel_key not in dir(class_conf):
              continue
          raw_attr = getattr(class_conf, camel_key)
          if isinstance(raw_attr, DICT_CONFIG_CLASSES):
              setattr(
                  class_conf,
                  camel_key,
                  _load_sub_conf(value, type(raw_attr)),
              )
          else:
              setattr(class_conf, camel_key, value)
      return class_conf
  
file_path: CNTK/bindings/python/cntk/contrib/crosstalkcaffe/utils/globalconf.py
imports: from cntk.contrib.crosstalkcaffe.utils import format
label_desc: Use image node_id 1 for calling a global function with example usage: _load_sub_conf(meta_dict, target_type) and returns: class_conf