code: def algo_reg(args):
      meta_list = read_reg_meta_list(args.meta_path)
      for meta in meta_list:
          old = package_utils.get_algo_meta(meta.name)
          if old is not None and old.is_builtin:
              print_error(
                  f"Cannot overwrite builtin algorithm {meta.name}"
              )
              continue
  
          verify_algo_import(meta)
          if old is not None:
              print_green(f"Updating exist algorithm")
          package_utils.register_algo_meta(meta)
          print_green(f"{meta.name} registered sucessfully!")
  
file_path: nni/nni/tools/nnictl/algo_management.py
imports: import importlib
  import json
  import nni
  from nni.tools import package_utils
  from .common_utils import print_error, print_green, get_yml_content
label_desc: Use image node_id 3 for calling a global function with example usage: algo_reg(args) without return types