That’s not going to happen. We can’t even estimate how long it will take to complete a backlog item until after we complete it, there is no way to know how complex a task is without doing it.
We need something more sophisticated, but you could just escalate the model quality if if keeps failing the test. Not elegant but it will work.