src/transformers/generation/tf_utils.py/TFGenerationMixin/seed_generator
class TFGenerationMixin:    def seed_generator(self):
        warnings.warn("`seed_generator` is deprecated and will be removed in a future version.", UserWarning)
        if self._seed_generator is None:
            self._seed_generator = tf.random.Generator.from_non_deterministic_state()
        return self._seed_generator