Revert "add APIs to determine a class is a namedtuple or PyStructSequence (#113257)"
Summary:
This reverts commit f08146b67bab331f7bdc9fa247f526f6e60a7190.
Reverted https://github.com/pytorch/pytorch/pull/113257 on behalf of https://github.com/jovianjaison due to breaking internal builds ([comment](https://github.com/pytorch/pytorch/pull/113257#issuecomment-2711299830))
Differential Revision: D70903497
fbshipit-source-id: 8e6cc0702ff8498c4a6a5e6623a9cdd188e063c7
Author
generatedunixname499836121