[Hackathon] Add source range highligh check to test_string_formatting (#55491)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55491
Reviewed By: janeyx99
Differential Revision: D27627477
Pulled By: gmagogsfm
fbshipit-source-id: 4586d7c96eae762be53c1155c6c724c6d65f1e7f