code: def add_create_object_detection_dataset_command(subparsers):
      # Create object detection dataset
      subparser = subparsers.add_parser(
          "create_object_detection_dataset",
          help="Create dataset from image and label files.",
      )
      subparser.add_argument(
          "-i",
          "--sourcedir",
          help="source directory with souce image and label files",
          required=True,
      )
      subparser.add_argument(
          "-o", "--outdir", help="output directory", required=True
      )
      subparser.add_argument(
          "-n",
          "--num_class",
          help="number of object classes",
          required=True,
      )
      subparser.add_argument(
          "-c",
          "--channel",
          help="number of output color channels",
          required=True,
      )
      subparser.add_argument(
          "-w", "--width", help="width of output image", required=True
      )
      subparser.add_argument(
          "-g", "--height", help="height of output image", required=True
      )
      subparser.add_argument(
          "-a", "--num_anchor", help="number of anchor", required=True
      )
      subparser.add_argument(
          "-d",
          "--grid_size",
          help="width and height of detection grid",
          required=True,
      )
      subparser.add_argument(
          "-m",
          "--mode",
          help="shaping mode (trimming or padding)",
          required=True,
      )
      subparser.add_argument(
          "-s",
          "--shuffle",
          help="shuffle mode (true or false)",
          required=True,
      )
      subparser.add_argument(
          "-f1", "--file1", help="output file name 1", required=True
      )
      subparser.add_argument(
          "-r1", "--ratio1", help="output file ratio(%%) 1"
      )
      subparser.add_argument(
          "-f2", "--file2", help="output file name 2"
      )
      subparser.add_argument(
          "-r2", "--ratio2", help="output file ratio(%%) 2"
      )
      subparser.set_defaults(
          func=create_object_detection_dataset_command
      )
  
imports: import csv
  import multiprocessing
  import os
  import re
  import nnabla.logger
  import numpy
  import tqdm
  from nnabla.utils.image_utils import imsave, imread, imresize
label_desc: Use image node_id 5 for calling a global function with example usage: add_create_object_detection_dataset_command(subparsers) without return types