class_docstr: tf metrics utils unittest
class_docstr_tok: ["tf","metrics","utils","unittest"]
docstr: test accuracy
docstr_tok: ["test","accuracy"]
code: def test_accuracy(self):
      """test accuracy"""
      logits = tf.constant(
          [[0.1, 0.2, 0.7], [0.5, 0.2, 0.3], [0.2, 0.2, 0.6]]
      )
      labels = tf.constant([2, 0, 1])
      output = tf_metrics.accuracy(logits, labels)
      self.assertAllClose(output, 0.6666667)
  
imports: import delta.compat
  from delta.utils.metrics import tf_metrics
label_desc: Use image node_id 1 for calling the TFMetricUtilsTest obj's underlying member method code with example usage: obj.test_accuracy() without return types