code: def register_algo_meta(algo_meta: AlgoMeta) -> None:
      """
      Register a custom algorithm.
      If it already exists, overwrite it.
      """
      algos = {algo.name: algo for algo in _load_custom_config()}
      algos[algo_meta.name] = algo_meta
      _save_custom_config(algos.values())
  
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 3 for calling a global function with example usage: register_algo_meta(algo_meta) without return types