code: def parse_config(cfg_file):
      """Load a config file into AttrDict"""
      with open(cfg_file, "r") as fopen:
          yaml_config = AttrDict(
              yaml.load(fopen, Loader=yaml.SafeLoader)
          )
      create_attr_dict(yaml_config)
      return yaml_config
  
file_path: PaddleHub/modules/image/classification/levit_256_imagenet/utils.py
imports: import argparse
  import copy
  import os
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: parse_config(cfg_file) and returns: yaml_config