Refactor minifier tests to be more compact (#100471)
Mostly burning in more assumptions based on commonality on the tests,
so writing new tests takes less code.
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100471
Approved by: https://github.com/voznesenskym