code: def load_global_config():
      config_file = os.path.join(root, "config.yaml")
      if os.path.exists(config_file):
          with open(config_file, "r") as fin:
              cfg = EasyDict(yaml.safe_load(fin))
          cfg = recursive_default(cfg, default)
      else:
          cfg = default
  
      assert_in(["graphvite", "torch"], backend=cfg.backend)
      if not os.path.exists(cfg.dataset_path):
          os.mkdir(cfg.dataset_path)
      if isinstance(cfg.float_type, str):
          cfg.float_type = eval(cfg.float_type)
      if isinstance(cfg.index_type, str):
          cfg.index_type = eval(cfg.index_type)
  
      return cfg
  
file_path: graphvite/python/graphvite/base.py
imports: from __future__ import absolute_import
  import os
  import sys
  import yaml
  import logging
  from easydict import EasyDict
  from .None import lib, dtype
  from .util import recursive_default, assert_in
label_desc: Use image node_id 1 for calling a global function with example usage: load_global_config() and returns: cfg