code: def default_pagexml_trainer_params(*, preload=True):
      p = pagexml_trainer_params(with_validation=True, preload=preload)
      p.learning_rate.lr = 0
      p.scenario.model.layers = (
          default_layers()
      )  # need for correct loading
      p.warmstart.model = os.path.join(
          this_dir,
          "models",
          f"version{SavedCalamariModel.VERSION}",
          "0.ckpt.json",
      )
      return p
  
file_path: calamari/calamari_ocr/test/test_pretrained.py
imports: import os
  import tempfile
  import unittest
  from tensorflow.python.keras.backend import clear_session
  from calamari_ocr.ocr import SavedCalamariModel
  from calamari_ocr.ocr.model.params import default_layers
  from calamari_ocr.scripts.train import main
  from calamari_ocr.test.test_train_file import uw3_trainer_params
  from calamari_ocr.test.test_train_pagexml import default_trainer_params
label_desc: Use image node_id 2 for calling a global function with example usage: default_pagexml_trainer_params() and returns: p