Disambiguate test for required_input in tokenization base file.
# What does this PR do?

This is a prime example of why we should never rely on Python bool conversion magic, as it often fails with array-like types.
Fixes #19136 
_The documentation is not available anymore as the PR was closed or merged._