code: def load_dvc_config(dir):
      yaml_filename = dvc_yaml_path(dir)
      if not os.path.exists(yaml_filename):
          log.warning(
              "%s not found - skipping DvC stages import",
              os.path.relpath(yaml_filename),
          )
          return {}
      log.debug("loading %s for DvC stages import", yaml_filename)
      with open(yaml_filename) as f:
          return yaml.safe_load(f)
  
imports: import json
  import logging
  import os
  import subprocess
  import yaml
  from guild import util
  from guild import var
label_desc: Use image node_id 1 for calling a global function with example usage: load_dvc_config(dir) and returns: dict, yaml