code: def __init__(self, line_generator_params: LineGeneratorParams):
      self.params = line_generator_params
      self.fonts = [
          FontVariants(f, self.params.font_size)
          for f in self.params.fonts
      ]
  
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 1 to create a new LineGenerator object  with example: obj = LineGenerator(line_generator_params)