code: def unregister(args):
      config = _load()
      if args.package not in config:
          print_error(
              f"{args.package} is not a registered training service"
          )
          return
      config.pop(args.package, None)
      _save(config)
      print_green(f"Sucessfully unregistered {args.package}")
  
file_path: nni/nni/tools/nnictl/ts_management.py
imports: import importlib
  import json
  from nni.runtime.config import get_config_file
  from .common_utils import print_error, print_green
label_desc: Use image node_id 2 for calling a global function with example usage: unregister(args) without return types