class_docstr: Implements a character image generation dataset
  
  >>> from doctr.datasets import CharacterGenerator
  >>> ds = CharacterGenerator(vocab='abdef', num_samples=100)
  >>> img, target = ds[0]
  
  Args:
  ----
      vocab: vocabulary to take the character from
      num_samples: number of samples that will be generated iterating over the dataset
      cache_samples: whether generated images should be cached firsthand
      font_family: font to use to generate the text images
      img_transforms: composable transformations that will be applied to each image
      sample_transforms: composable transformations that will be applied to both the image and the target
code: def __init__(self, *args, **kwargs) -> None:
      super().__init__(*args, **kwargs)
  
file_path: doctr/doctr/datasets/generator/tensorflow.py
imports: import tensorflow
  from .base import _CharacterGenerator, _WordGenerator
label_desc: Use image node_id 1 to create a new CharacterGenerator object from inherited base classes: _CharacterGenerator with example: obj = CharacterGenerator()