code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Convert CurvedSynText150k to COCO format"
      )
      parser.add_argument(
          "root_path", help="CurvedSynText150k  root path"
      )
      parser.add_argument("-o", "--out-dir", help="Output path")
      parser.add_argument(
          "-n",
          "--num-sample",
          type=int,
          default=4,
          help="Number of sample points at each Bezier curve.",
      )
      parser.add_argument(
          "--nproc", default=1, type=int, help="Number of processes"
      )
      args = parser.parse_args()
      return args
  
file_path: mmocr/tools/dataset_converters/common/curvedsyntext_converter.py
imports: import argparse
  import os.path
  from functools import partial
  import mmengine
  import numpy
  from mmocr.utils import bezier2polygon, sort_points
label_desc: Use image node_id 4 for calling a global function with example usage: parse_args() and returns: args