code: def _save_custom_config(custom_algos):
      config = defaultdict(list)
      for algo in custom_algos:
          config[algo.algo_type + "s"].append(algo.dump())
      text = yaml.dump(dict(config), default_flow_style=False)
      get_config_file("registered_algorithms.yml").write_text(text)
  
file_path: nni/nni/tools/package_utils/config_manager.py
imports: from __future__ import annotations
  from collections import defaultdict
  import yaml
  from nni.runtime.config import get_builtin_config_file, get_config_file
  from .common import AlgoMeta
label_desc: Use image node_id 8 for calling a global function with example usage: _save_custom_config(custom_algos) without return types