code: def create_attr_dict(yaml_config):
      from ast import literal_eval
  
      for key, value in yaml_config.items():
          if type(value) is dict:
              yaml_config[key] = value = AttrDict(value)
          if isinstance(value, str):
              try:
                  value = literal_eval(value)
              except BaseException:
                  pass
          if isinstance(value, AttrDict):
              create_attr_dict(yaml_config[key])
          else:
              yaml_config[key] = value
      return
  
imports: import logging
  from .utility import AttrDict
label_desc: Use image node_id 2 for calling a global function with example usage: create_attr_dict(yaml_config) without return types