code: def parse_config(cfg_file):
      """Load a config file into AttrDict"""
      import yaml
  
      with open(cfg_file, "r") as fopen:
          yaml_config = AttrDict(yaml.load(fopen, Loader=yaml.Loader))
      create_attr_dict(yaml_config)
      return yaml_config
  
imports: import logging
  from .utility import AttrDict
label_desc: Use image node_id 1 for calling a global function with example usage: parse_config(cfg_file) and returns: yaml_config