[Dynamo] Support methods of NamedTuple (#103217)
This PR adds the support of calling NamedTuple methods. https://github.com/pytorch/pytorch/issues/91662
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103217
Approved by: https://github.com/williamwen42