code: def main():
      args = parse_args()
      root_path = args.root_path
  
      for split in ["Train", "Test"]:
          img_info = convert_annotations(root_path, split)
          dump_ocr_data(
              img_info,
              osp.join(root_path, f"{split.lower()}_label.json"),
              "textrecog",
          )
          print(f"{split} split converted.")
  
imports: import argparse
  import os.path
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types