code: def eval_args(gt_data, pred_data=None) -> EvalArgs:
      return EvalArgs(
          gt=gt_data,
          pred=pred_data,
          checkpoint=checkpoint,
      )
  
imports: import os
  import tempfile
  import unittest
  from tensorflow import keras
  from calamari_ocr.ocr import SavedCalamariModel
  from calamari_ocr.ocr.dataset.datareader.abbyy.reader import Abbyy
  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.scripts.predict import run, PredictArgs
  from calamari_ocr.scripts.eval import main, EvalArgs
  from calamari_ocr.utils import glob_all
label_desc: Use image node_id 2 for calling a global function with example usage: eval_args(gt_data, pred_data) and returns: EvalArgs