code: def add_forward_command(subparsers):
      # Forward
      subparser = subparsers.add_parser(
          "forward", help="Do evaluation with NNP and test dataset."
      )
      subparser.add_argument(
          "-c", "--config", help="path to nntxt", required=True
      )
      subparser.add_argument(
          "-p", "--param", help="path to parameter file", required=False
      )
      subparser.add_argument(
          "-d", "--dataset", help="path to CSV dataset", required=False
      )
      subparser.add_argument(
          "-o", "--outdir", help="output directory", required=True
      )
      subparser.add_argument(
          "-f",
          "--outfile",
          help="output file name",
          default="output_result.csv",
      )
      subparser.add_argument(
          "--replace_path",
          help="replace data path in the dataset with absolute path",
          action="store_true",
      )
      subparser.add_argument(
          "--result_outdir",
          help="output result directory",
          type=str,
          default="",
      )
      subparser.add_argument(
          "-b",
          "--batch_size",
          help="Batch size to use batch size in nnp file set -1.",
          type=int,
          default=-1,
      )
      subparser.set_defaults(func=forward_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 8 for calling a global function with example usage: add_forward_command(subparsers) without return types