IMHO, your question makes no sense - named tuples are ad-hoc containers and you’re free to use them as you want while programming models, but there is very little use for them in ML framework interfaces (e.g. sort() returns named tuples, but then - so what).
if you rather want to replace tensors with tensor groups, there is experimental nestedtensor project, can’t comment on its state or usefulness.