code: def parse_configs(path):
      if not path or not osp.exists(path):
          return
      with open(path, "r", encoding="utf-8") as f:
          return yaml.load(f.read(), Loader=yaml.FullLoader)
  
file_path: PaddleSeg/EISeg/eiseg/util/config.py
imports: import yaml
  import os.path
  import os
  from eiseg import pjpath
label_desc: Use image node_id 1 for calling a global function with example usage: parse_configs(path) and returns: yaml