[quant][graphmode] Move processing code to prepare_script (#38669)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38669
Test Plan: Imported from OSS
Differential Revision: D21623385
fbshipit-source-id: a59630de47f4927ae8af3801240101d307901671