Deprecate method `to_torchscript` (#21397)
* deprecate method
* deprecate method
* add deprecation to tests
* remove example from readme
* remove example from readme
* changelog
* remove readme changes
---------
Co-authored-by: Deependu <deependujha21@gmail.com>