code: def main():
      args = parse_args()
      root_path = args.root_path
      print("Processing training set...")
      convert_art(
          root_path=root_path, split="train", ratio=args.val_ratio
      )
      if args.val_ratio > 0:
          print("Processing validation set...")
          convert_art(
              root_path=root_path, split="val", ratio=args.val_ratio
          )
      print("Finish")
  
imports: import argparse
  import math
  import os.path
  import mmengine
  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