[quant][graphmode] refactor nodeQuantizable (#33171)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33171
For better code reuse
Test Plan:
.
Imported from OSS
Differential Revision: D20087845
fbshipit-source-id: f88cffb410bd54a1b3f937786104f46bcd1190d3