[ONNX] Handle Sub-block index_put in _jit_pass_onnx_remove_inplace_ops_for_onnx (#48734)
Summary:
For the added UT and existing UTs, this code is independent and ready for review.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48734
Reviewed By: izdeby
Differential Revision: D25502677
Pulled By: bzinodev
fbshipit-source-id: 788b4eaa5e5e8b5df1fb4956fbd25928127bb199