code: def setup_trainer_params(preload=True, debug=False):
      p = CalamariTestEnsembleScenario.default_trainer_params()
      p.force_eager = debug
  
      p.gen.train = FileDataParams(
          images=glob_all(
              [
                  os.path.join(
                      this_dir, "data", "uw3_50lines", "train", "*.png"
                  )
              ]
          ),
          preload=preload,
      )
  
      post_init(p)
      return p
  
file_path: calamari/calamari_ocr/test/test_train_ensemble.py
imports: import os
  import tempfile
  import unittest
  from tensorflow import keras
  from tfaip.util.tfaipargparse import post_init
  from calamari_ocr.ocr.dataset.datareader.file import FileDataParams
  from calamari_ocr.ocr.scenario import CalamariEnsembleScenario
  from calamari_ocr.scripts.train import main
  from calamari_ocr.test.calamari_test_scenario import CalamariTestEnsembleScenario
  from calamari_ocr.utils import glob_all
label_desc: Use image node_id 1 for calling a global function with example usage: setup_trainer_params(preload, debug) and returns: p