code: def parse_args(args=None):
      parser = PAIArgumentParser()
  
      # GENERAL/SHARED PARAMETERS
      parser.add_argument(
          "--version",
          action="version",
          version="%(prog)s v" + __version__,
      )
      parser.add_root_argument("args", PredictAndEvalArgs)
      return parser.parse_args(args=args).args
  
file_path: calamari/calamari_ocr/scripts/predict_and_eval.py
imports: from dataclasses import dataclass, field
  from typing import Optional, List
  from paiargparse import pai_dataclass, pai_meta, PAIArgumentParser
  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.predict.params import PredictorParams
  from calamari_ocr.scripts.eval import print_confusions
  from calamari_ocr.utils import glob_all
  from calamari_ocr.ocr.voting import VoterParams
  from calamari_ocr import __version__
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args(args) and returns: parser