[quant][refactor] Tests for torch.jit.quantized (#40330)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40330
Test Plan: Imported from OSS
Differential Revision: D22149707
fbshipit-source-id: 44e7545bf9277d9245b5e9c2d9461f664fff0426