code: def test_predict_and_eval_hdf5(self):
      from calamari_ocr.test.test_train_hdf5 import (
          default_trainer_params,
      )
  
      checkpoint = os.path.join(this_dir, "models", "best.ckpt")
      trainer_params = default_trainer_params(with_validation=True)
      args = PredictAndEvalArgs(
          checkpoint=[checkpoint],
          predictor=PredictorParams(
              pipeline=DataPipelineParams(num_processes=1)
          ),
          data=trainer_params.gen.val_gen(),
      )
      main(args)
  
file_path: calamari/calamari_ocr/test/test_predict_and_eval.py
imports: import os
  import unittest
  from tfaip.data.databaseparams import DataPipelineParams
  from calamari_ocr.ocr.predict.params import PredictorParams
  from calamari_ocr.scripts.predict_and_eval import main, PredictAndEvalArgs
label_desc: Use image node_id 4 for calling the TestPredictAndEval obj's underlying member method code with example usage: obj.test_predict_and_eval_hdf5() without return types