[Hackathon] Add error source range highlighting check in test_scriptmod_ann (#55482)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55482
Reviewed By: janeyx99
Differential Revision: D27627460
Pulled By: gmagogsfm
fbshipit-source-id: 099e36f36561c9252b027c8f89b301108133b0a7