docstr: This is a test of the example provided in pydoc.
code: def testExample(self):
      """This is a test of the example provided in pydoc."""
      with self.cached_session():
          self.assertAllEqual(
              [
                  [0, 0, 0, 0, 0],
                  [0, 0, 1, 0, 0],
                  [0, 0, 1, 0, 0],
                  [0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1],
              ],
              self.evaluate(
                  confusion_matrix.confusion_matrix(
                      labels=[1, 2, 4], predictions=[2, 2, 4]
                  )
              ),
          )
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import confusion_matrix
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ConfusionMatrixTest obj's underlying member method code with example usage: obj.testExample() without return types