code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Generate training and val set of RCTW."
      )
      parser.add_argument("root_path", help="Root dir path of RCTW")
      parser.add_argument(
          "--val-ratio",
          help="Split ratio for val set",
          default=0.0,
          type=float,
      )
      parser.add_argument(
          "--nproc", default=1, type=int, help="Number of process"
      )
      args = parser.parse_args()
      return args
  
file_path: mmocr/tools/dataset_converters/textdet/rctw_converter.py
imports: import argparse
  import math
  import os
  import os.path
  import mmcv
  import mmengine
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 5 for calling a global function with example usage: parse_args() and returns: args