code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Generate training and validation set of COCO Text v2 "
      )
      parser.add_argument(
          "root_path", help="Root dir path of COCO Text v2"
      )
      parser.add_argument(
          "--nproc", default=1, type=int, help="Number of processes"
      )
      parser.add_argument(
          "--preserve-vertical",
          help="Preserve samples containing vertical texts",
          action="store_true",
      )
      args = parser.parse_args()
      return args
  
file_path: mmocr/tools/dataset_converters/textrecog/cocotext_converter.py
imports: import argparse
  import math
  import os.path
  from functools import partial
  import mmcv
  import mmengine
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args