[Hackathon] Add error source range highlighting check in test_recursive_script.py (#55475)
Summary:
Fixes #{issue number}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55475
Reviewed By: janeyx99
Differential Revision: D27625464
Pulled By: gmagogsfm
fbshipit-source-id: 27cf508593f02a26ba63e58b9bbb125b9e90e1ea