Revert "Remove dynamic_shapes test for inductor static weights (#103377)"
This reverts commit 53cb1a7d15804fef6eb25cbad8a0380a29f53e8b.
Reverted https://github.com/pytorch/pytorch/pull/103377 on behalf of https://github.com/malfet due to broke lint ([comment](https://github.com/pytorch/pytorch/pull/103377#issuecomment-1591356769))