Speed up tests by simplifying test fixtures (#16560)
Move some definitions away from commonly used fixtures that are only
needed in one or two test cases, as they will slow down many test cases.
This speeds up `mypy/test/testcheck.py` by about 5% on my Linux desktop.