code: def test_unweighted(self):
      top_k_cat_acc_obj = accuracy_metrics.TopKCategoricalAccuracy(
          k=1, name="top_k_categorical_accuracy", dtype="float32"
      )
      y_true = np.array([[0, 0, 1], [0, 1, 0]])
      y_pred = np.array(
          [[0.1, 0.9, 0.8], [0.05, 0.95, 0]], dtype="float32"
      )
      top_k_cat_acc_obj.update_state(y_true, y_pred)
      result = top_k_cat_acc_obj.result()
      self.assertAllClose(result, 0.5, atol=1e-3)
  
imports: import re
  import numpy
  from keras import testing
  from keras.metrics import accuracy_metrics
label_desc: Use image node_id 2 for calling the TopKCategoricalAccuracyTest obj's underlying member method code with example usage: obj.test_unweighted() without return types