code: def load_config(config_file):
      """Load config file"""
      with open(config_file) as f:
          if hasattr(yaml, "FullLoader"):
              config = yaml.load(f, Loader=yaml.FullLoader)
          else:
              config = yaml.load(f)
  
      return AttrDict(config)
  
file_path: PGL/legacy/examples/distribute_graphsage/utils.py
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import time
  import yaml
  import numpy
  from pgl.utils.logger import log
label_desc: Use image node_id 1 for calling a global function with example usage: load_config(config_file) and returns: AttrDict