code: def _load_sample(self, sample, text_only):
      image, text = self.data_queue.get()
      fold_id = (
          -1
          if self.params.n_folds <= 0
          else np.random.randint(self.params.n_folds)
      )
      yield InputSample(
          image, text, SampleMeta(id=sample["id"], fold_id=fold_id)
      )
  
file_path: calamari/calamari_ocr/ocr/dataset/datareader/generated_line_dataset/dataset.py
imports: import logging
  import random
  from multiprocessing import Process, Queue, Manager
  import numpy
  from tfaip.data.pipeline.definitions import PipelineMode
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGenerator, InputSample, SampleMeta
  from calamari_ocr.ocr.dataset.datareader.generated_line_dataset.params import GeneratedLineDatasetParams
  from calamari_ocr.ocr.dataset.datareader.generated_line_dataset.line_generator import LineGenerator
  from calamari_ocr.ocr.dataset.datareader.generated_line_dataset.text_generation.text_generator import TextGenerator
label_desc: Use image node_id 3 for calling the GeneratedLineDataset obj's underlying member method code with example usage: obj._load_sample(sample, text_only) without return types