src/transformers/generation/tf_utils.py/TFGenerationMixin/prepare_inputs_for_generation
class TFGenerationMixin:    def prepare_inputs_for_generation(self, *args, **kwargs):
        raise NotImplementedError(
            "A model class needs to define a `prepare_inputs_for_generation` method in order to use `generate`."
        )