code: def dump_cfg(cfg):
      r"""Dumps the config to the output directory specified in
      :obj:`cfg.out_dir`.
  
      Args:
          cfg (CfgNode): Configuration node
      """
      os.makedirs(cfg.out_dir, exist_ok=True)
      cfg_file = osp.join(cfg.out_dir, cfg.cfg_dest)
      with open(cfg_file, "w") as f:
          cfg.dump(stream=f)
  
file_path: pytorch_geometric/torch_geometric/graphgym/config.py
imports: import functools
  import inspect
  import logging
  import os
  import os.path
  import warnings
  from collections.abc import Iterable
  from dataclasses import asdict
  from typing import Any
  import torch_geometric.graphgym.register
  from torch_geometric.io import fs
label_desc: Use image node_id 3 for calling a global function with example usage: dump_cfg(cfg) without return types