code: def test_prediction_extended_pagexml_with_voting(self):
      # With actual model to evaluate correct positions
      args = predict_args(data=pagexml_dataset())
      args.checkpoint = [
          os.path.join(
              this_dir,
              "models",
              f"version{SavedCalamariModel.VERSION}",
              "0.ckpt",
          )
      ] * 2
      args.extended_prediction_data = True
      run(args)
      jsons = [
          os.path.join(
              this_dir, "data", "uw3_50lines", "test", "*.json"
          )
      ]
      run_compute_avg_pred(ExtendedPredictionDataParams(files=jsons))
  
imports: import os
  import unittest
  import numpy
  from calamari_ocr.ocr import SavedCalamariModel
  from calamari_ocr.ocr.predict.params import PredictionResult, Predictions
  from tensorflow import keras
  from calamari_ocr.ocr.dataset.datareader.abbyy.reader import Abbyy
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGeneratorParams
  from calamari_ocr.ocr.dataset.datareader.extended_prediction import ExtendedPredictionDataParams
  from calamari_ocr.ocr.dataset.datareader.file import FileDataParams
  from calamari_ocr.ocr.dataset.datareader.hdf5.reader import Hdf5
  from calamari_ocr.ocr.dataset.datareader.pagexml.reader import PageXML
  from calamari_ocr.ocr.predict.predictor import Predictor, PredictorParams, MultiPredictor
  from calamari_ocr.scripts.compute_average_prediction_confidence import run
  from calamari_ocr.scripts.predict import run, PredictArgs
  from calamari_ocr.utils import glob_all
  from calamari_ocr.utils.image import ImageLoaderParams
label_desc: Use image node_id 3 for calling the TestPrediction obj's underlying member method code with example usage: obj.test_prediction_extended_pagexml_with_voting() without return types