code: def add_optimize_command(subparsers):
      ################################################################################
      # Optimize pb model
      subparser = subparsers.add_parser(
          "optimize", help="Optimize pb model."
      )
      subparser.add_argument(
          "input_file", nargs=1, help="Input pre-optimized pb model."
      )
      subparser.add_argument(
          "output_file", nargs=1, help="Output optimized pb model."
      )
      subparser.set_defaults(func=optimization_command)
  
imports: import json
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: add_optimize_command(subparsers) without return types