add wrapper to exclude XLA when running device tests
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/30316
Test Plan: Imported from OSS
Differential Revision: D18659286
Pulled By: nairbv
fbshipit-source-id: 86d035bb0c54c612868590c3188cfcd969c3f686