Generate: fix TF doctests
# What does this PR do?

Fixes doctests in `src/transformers/generation/tf_utils.py` that were not passing.
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_20159). All of your documentation changes will be reflected on that endpoint.