code: def main():
      args = parse_args()
      root_path = args.root_path
  
      for split in ["train", "val", "test"]:
          print(f"Processing {split} set...")
          with mmengine.Timer(
              print_tmpl="It takes {}s to convert IMGUR annotation"
          ):
              anno_infos = collect_imgur_info(
                  root_path, f"imgur5k_annotations_{split}.json"
              )
              generate_ann(root_path, split, anno_infos)
  
file_path: mmocr/tools/dataset_converters/textrecog/imgur_converter.py
imports: import argparse
  import math
  import os
  import os.path
  import mmcv
  import mmengine
  import numpy
  from mmocr.utils import crop_img, dump_ocr_data
label_desc: Use image node_id 7 for calling a global function with example usage: main() without return types