More `token` things
# What does this PR do?

Fix #25141

A few places are missed in #25083

(I haven't work on the training example scripts)
_The documentation is not available anymore as the PR was closed or merged._