code: def export_cfg_as_yaml(cfg, export_path: str = "config.yaml"):
      """
      Exports Detectron2 config object in yaml format so that it can be used later.
      Args:
          cfg (detectron2.config.CfgNode): Detectron2 config object.
          export_path (str): Path to export the Detectron2 config.
      Related Detectron2 doc: https://detectron2.readthedocs.io/en/stable/modules/config.html#detectron2.config.CfgNode.dump
      """
      Path(export_path).parent.mkdir(exist_ok=True, parents=True)
  
      with open(export_path, "w") as f:
          f.write(cfg.dump())
  
label_desc: Use image node_id 1 for calling a global function with example usage: export_cfg_as_yaml(cfg, export_path) without return types