code: def testMismatchedShape(self):
      with self.assertRaisesRegex(
          Exception,
          (
              r"(In\[0\] and In\[1\] has different ndims|In\[0\] "
              r"ndims must be >= 2|Shape must be rank 2 but is rank 1)"
          ),
      ):
          infix_matmul(
              ops.convert_to_tensor([10.0, 20.0, 30.0]),
              ops.convert_to_tensor([[40.0, 50.0], [60.0, 70.0]]),
          )
  
imports: import operator
  import numpy
  from tensorflow.python import tf2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the MatMulInfixOperatorTest obj's underlying member method code with example usage: obj.testMismatchedShape() without return types