Replace optax.OptState with NamedTuple, when it is used as a base class.
Replace optax.OptState with NamedTuple, when it is used as a base class.

PiperOrigin-RevId: 408351238

google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research