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
  
file_path: PaddleHub/modules/image/classification/pplcnet_x2_5_imagenet/utils.py
imports: import argparse
  import copy
  import os
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: create_attr_dict(yaml_config) without return types