code: def dump_cfg(cfg_file, cfg):
      """Dumps the config to the specified location."""
      with open(cfg_file, "w") as f:
          cfg.dump(stream=f)
  
file_path: pycls/tools/sweep_setup.py
imports: import multiprocessing
  import os
  import numpy
  import pycls.models.scaler
  import pycls.sweep.config
  import pycls.sweep.samplers
  import yaml
  from pycls.core.config import cfg, reset_cfg
  from pycls.core.timer import Timer
  from pycls.sweep.config import sweep_cfg
label_desc: Use image node_id 2 for calling a global function with example usage: dump_cfg(cfg_file, cfg) without return types