code: def dump_cfg():
      """Dumps the config to the output directory."""
      cfg_file = os.path.join(_C.OUT_DIR, _C.CFG_DEST)
      with pathmgr.open(cfg_file, "w") as f:
          _C.dump(stream=f)
      return cfg_file
  
imports: import os
  from pycls.core.io import pathmgr
  from yacs.config import CfgNode
label_desc: Use image node_id 2 for calling a global function with example usage: dump_cfg() and returns: cfg_file