code: def nlp_inference_cli():
      prog_name = "nlp-inference"
      desc = "NLP Architect Inference CLI [{}]".format(
          NLP_ARCHITECT_VERSION
      )
      parser = argparse.ArgumentParser(description=desc, prog=prog_name)
      parser.add_argument(
          "-v",
          "--version",
          action="version",
          version="%(prog)s v{}".format(NLP_ARCHITECT_VERSION),
      )
      parser.set_defaults(func=lambda _: parser.print_help())
      subparsers = parser.add_subparsers(title="Models", metavar="")
      for model in CMD_REGISTRY["inference"]:
          sp = subparsers.add_parser(
              model["name"],
              description=model["description"],
              help=model["description"],
          )
          model["arg_adder"](sp)
          sp.set_defaults(func=model["fn"])
  
      args = parser.parse_args()
      if hasattr(args, "func"):
          args.func(args)
      else:
          parser.print_help()
  
imports: import argparse
  import logging
  import nlp_architect.procedures
  from nlp_architect.cli.cmd_registry import CMD_REGISTRY
  from nlp_architect.version import NLP_ARCHITECT_VERSION
label_desc: Use image node_id 2 for calling a global function with example usage: nlp_inference_cli() without return types