code: def main():
      parser = PAIArgumentParser()
  
      parser.add_argument(
          "--version",
          action="version",
          version="%(prog)s v" + __version__,
      )
      parser.add_root_argument("root", PredictArgs, flat=True)
      args = parser.parse_args()
  
      run(args.root)
  
file_path: calamari/calamari_ocr/scripts/predict.py
imports: import os
  import zlib
  from dataclasses import dataclass, field
  from typing import TYPE_CHECKING, List, Optional
  import tfaip.util.logging
  from bidi.algorithm import get_base_level
  from paiargparse import PAIArgumentParser, pai_meta, pai_dataclass
  from calamari_ocr import __version__
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGeneratorParams
  from calamari_ocr.ocr.dataset.datareader.file import FileDataParams
  from calamari_ocr.ocr.dataset.params import DATA_GENERATOR_CHOICES
  from calamari_ocr.ocr.model.ctcdecoder.ctc_decoder import CTCDecoderParams, CTCDecoderType
  from calamari_ocr.ocr.predict.params import Predictions, PredictorParams
  from calamari_ocr.ocr.voting import VoterParams
  from calamari_ocr.utils.glob import glob_all
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types