[inductor] test codegen with dynamic shapes (#96934)
Adds new tests that check for patterns in generated C++/Triton code to
see if it's dynamic.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96934
Approved by: https://github.com/ezyang