code: def parse_args(args=None) -> ExtendedPredictionDataParams:
      parser = PAIArgumentParser()
      parser.add_root_argument("data", ExtendedPredictionDataParams)
      return parser.parse_args(args=args).data
  
file_path: calamari/calamari_ocr/scripts/compute_average_prediction_confidence.py
imports: import logging
  import numpy
  from paiargparse import PAIArgumentParser
  from tfaip.data.pipeline.definitions import PipelineMode
  from calamari_ocr.ocr.dataset.datareader.extended_prediction import ExtendedPredictionDataParams
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args(args) and returns: parser