[Hackathon] Add source highlighting check in test_type_sharing (#55498)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55498
Reviewed By: janeyx99
Differential Revision: D27627506
Pulled By: gmagogsfm
fbshipit-source-id: abdd2a505099d3976762b4851d1024eb791e9204