code: def main():
      args = parse_args()
      root_path = args.root_path
      print("Processing training set...")
      num_train_imgs = 0
      for s in "125f":
          num_train_imgs = convert_openimages(
              root_path=root_path,
              dst_image_path=f"image_{s}",
              dst_label_filename=f"train_{s}_label.json",
              annotation_filename=f"text_spotting_openimages_v5_train_{s}.json",
              img_start_idx=num_train_imgs,
              nproc=args.n_proc,
          )
      print("Processing validation set...")
      convert_openimages(
          root_path=root_path,
          dst_image_path="image_val",
          dst_label_filename="val_label.json",
          annotation_filename="text_spotting_openimages_v5_validation.json",
          img_start_idx=num_train_imgs,
          nproc=args.n_proc,
      )
      print("Finish")
  
file_path: mmocr/tools/dataset_converters/textrecog/openvino_converter.py
imports: import math
  import os
  import os.path
  from argparse import ArgumentParser
  from functools import partial
  import mmengine
  from PIL import Image
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types