code: def testMatmulError(self):
      with self.assertRaisesRegex(ValueError, r""):
          np_math_ops.matmul(
              np_array_ops.ones([], np.int32),
              np_array_ops.ones([2, 3], np.int32),
          )
      with self.assertRaisesRegex(ValueError, r""):
          np_math_ops.matmul(
              np_array_ops.ones([2, 3], np.int32),
              np_array_ops.ones([], np.int32),
          )
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops.numpy_ops import np_array_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the MathTest obj's underlying member method code with example usage: obj.testMatmulError() without return types