code: def _draw(self, text, font: Font = None):
      if font is None:
          font = random.choice(self.fonts)
  
      return font.draw(text, 0.5)
  
imports: from PIL import ImageFont, ImageDraw, Image
  import numpy
  import random
  from skimage.transform import rescale
  from enum import IntEnum
  from collections import namedtuple
  from typing import List
  import logging
  from calamari_ocr.ocr.dataset.datareader.generated_line_dataset import LineGeneratorParams
label_desc: Use image node_id 3 for calling the LineGenerator obj's underlying member method code with example usage: obj._draw(text, font) and returns: font