[quant][pt2e][refactor] Refactor prepare to remove the use of qconfig in `_maybe_insert_input_observer_for_arg_or_kwarg` (#97948)
Summary:
The goal is for this function to be reused by quantize_pt2e
Test Plan:
python test/test_quantization.py TestQuantizeFx
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: [D44558929](https://our.internmc.facebook.com/intern/diff/D44558929)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97948
Approved by: https://github.com/andrewor14