Add smoke test for information fn/method/attrs to test_namedtensor
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22341
Test Plan:
- `python test/test_namedtensor.py -v` [namedtensor ci]
gh-metadata: pytorch pytorch 22341 gh/zou3519/66/head
Imported from OSS
Differential Revision: D16053440
Pulled By: zou3519
fbshipit-source-id: 400f2e1c136cd7db4346a42b58813e42595ca755