code: def testNotInvertible(self):
      # The input should be invertible.
      # The matrix is singular because it has a zero on the diagonal.
      # FIXME(rmlarsen): The GPU kernel does not check for singularity.
      singular_matrix = np.array(
          [[1.0, 0.0, -1.0], [-1.0, 0.0, 1.0], [0.0, -1.0, 1.0]]
      )
      with self.cached_session():
          with self.assertRaisesOpError(
              "Input matrix is not invertible."
          ):
              self._verifySolve(singular_matrix, singular_matrix)
          with self.assertRaisesOpError(
              "Input matrix is not invertible."
          ):
              self._verifySolve(
                  singular_matrix, singular_matrix, batch_dims=[2, 3]
              )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/math_ops/banded_triangular_solve_op_test.py
imports: import numpy
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the BandedTriangularSolveOpTest obj's underlying member method code with example usage: obj.testNotInvertible() without return types