code: def register_cmd(registry: dict, name: str, description: str):
      def register_cmd_fn(cls):
          if not issubclass(cls, Procedure):
              raise ValueError(
                  "Registered class must be subclassed from Procedure"
              )
          if name in registry:
              raise ValueError(
                  "Cannot register duplicate model {}".format(name)
              )
          run_fn = cls.run_procedure
          arg_adder_fn = cls.add_arguments
          new_cmd = {
              "name": name,
              "description": description,
              "fn": run_fn,
              "arg_adder": arg_adder_fn,
          }
          registry.append(new_cmd)
          return cls
  
      return register_cmd_fn
  
imports: from nlp_architect.cli.cmd_registry import CMD_REGISTRY
  from nlp_architect.procedures.procedure import Procedure
label_desc: Use image node_id 1 for calling a global function with example usage: register_cmd(registry, name, description) and returns: register_cmd_fn, cls