Fix Type Errors in Examples about Named Tensor (#27828)
Summary:
`names` should be `tuple`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27828
Differential Revision: D17908112
Pulled By: zou3519
fbshipit-source-id: bd1454c5d6e6b690955f49380e34c4b0ddaf879b