[PyTorch] Add test for operator_name (#64672)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64672
Just a small struct missing test coverage. Next diff changes it.
ghstack-source-id: 137786388
Test Plan: CI
Reviewed By: dhruvbird
Differential Revision: D30813013
fbshipit-source-id: 05f39494bb9512a71a928bfe6fcfa710016bdf61