code: def testInputDifferentSize(self):
      labels = np.asarray([1, 2])
      predictions = np.asarray([1, 2, 3])
      self.assertRaisesRegex(
          ValueError,
          "must be equal",
          confusion_matrix.confusion_matrix,
          predictions,
          labels,
      )
  
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 20 for calling the ConfusionMatrixTest obj's underlying member method code with example usage: obj.testInputDifferentSize() without return types