CategoricalAccuracy' object has no attribute 'reset_states

That assignment uses TF version 2.3.0. A lot must have changed between that and 2.16.1. They do not update the assignments every 2 weeks to use whatever the current version of all the packages is: that would be a huge effort and ultimately a waste of their time.

So that means that there is no guarantee that you can just run things locally with whatever versions you have installed and expect things to “just work”. There is no official solution to this issue. Here’s a thread which discusses some ways to approach this problem by duplicating environments, but that is the best we can offer.