generated_tests: Fix numpy warnings that are errors in 2.0
There are a number of warnings for overflows in numpy generated code. We want these overflows to happen, as we're testing overflow behavior in these tests, and so we need to apply the upstream numpy suggestion for keeping the overflowing behavior.