BUG: fix is_named_tuple for objects that are not subclass of tuple #40682
- [x] closes #40682
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry

looks fine. @fangchenli merge when greenish (pls look at the failure, looks not-related) thanks @fangchenli 