code: def add_infer_command(subparsers):
      # Infer
      subparser = subparsers.add_parser(
          "infer",
          help="Do inference with NNP and binary data file input.",
      )
      subparser.add_argument(
          "-c", "--config", help="path to nntxt", required=True
      )
      subparser.add_argument(
          "-o", "--output", help="output file prefix", required=False
      )
      subparser.add_argument(
          "-p", "--param", help="path to parameter file", required=False
      )
      subparser.add_argument(
          "-t",
          "--data_type",
          help="Parameter type (uint8, int32 or float32)",
          default="float32",
          required=False,
      )
      subparser.add_argument(
          "-b",
          "--batch_size",
          help="Batch size to use batch size in nnp file set -1.",
          type=int,
          default=1,
      )
      subparser.add_argument("inputs", nargs="+")
      subparser.set_defaults(func=infer_command)
  
imports: import csv
  import os
  import nnabla.utils.callback
  import nnabla.utils.load
  import numpy
  from nnabla.logger import logger
  from nnabla.utils.cli.utility import let_data_to_variable, is_float, compute_full_path
  from nnabla.utils.data_iterator import data_iterator_cache
  from nnabla.utils.data_iterator import data_iterator_csv_dataset
  from nnabla.utils.data_source_loader import FileReader
  from nnabla.utils.image_utils import imsave
  from nnabla.utils.progress import configure_progress, progress
  from six.moves import map
label_desc: Use image node_id 7 for calling a global function with example usage: add_infer_command(subparsers) without return types