[CI-Daily] replace `past` in prepare inputs for generation
# What does this PR do?
This will fix the failing test. It is a little nit, that escaped during #20944
cc @ydshieh 
_The documentation is not available anymore as the PR was closed or merged._