code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Generate training and validation set of HierText "
      )
      parser.add_argument("root_path", help="Root dir path of HierText")
      parser.add_argument(
          "--level",
          default="word",
          help="HierText provides three levels of annotation",
          choices=["word", "line", "paragraph"],
      )
      args = parser.parse_args()
      return args
  
file_path: mmocr/tools/dataset_converters/textdet/hiertext_converter.py
imports: import argparse
  import json
  import os.path
  import numpy
  from shapely.geometry import Polygon
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: args