class_docstr: Test for tri-diagonal matrix related ops.
code: def testInvalidShapesCompactFormat(self):
      def test_raises(diags_shape, rhs_shape):
          self._assertRaises(
              _tf_ones(diags_shape), _tf_ones(rhs_shape), "compact"
          )
  
      test_raises((5, 4, 4), (5, 4))
      test_raises((5, 3, 4), (4, 5))
      test_raises((5, 3, 4), (5))
      test_raises((5), (5, 4))
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  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 gradients
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.linalg import linalg_impl
  from tensorflow.python.platform import test
label_desc: Use image node_id 36 for calling the TridiagonalSolveOpsTest obj's underlying member method code with example usage: obj.testInvalidShapesCompactFormat() without return types