code: def _handle(self):
      try:
          words = self.text_generator.generate()
          image = (
              self.line_generator.draw(words)
              if not self.text_only
              else None
          )
          self.output_queue.put(
              (image, TextGenerator.words_to_unformatted_text(words))
          )
      except ValueError as e:
          logger.exception(e)
          raise
  
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 2 for calling the LineGeneratorProcess obj's underlying member method code with example usage: obj._handle() without return types