code: def categorical_accuracy(y_true, y_pred):
      return _sparse_categorical_matches(
          ivy.argmax(y_true, axis=-1), y_pred
      )
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 8 for calling a global function with example usage: categorical_accuracy(y_true, y_pred) and returns: _sparse_categorical_matches