class_docstr: Most tests done in the base class LinearOperatorDerivedClassTest.
class_docstr_tok: ["Most","tests","done","in","the","base","class","LinearOperatorDerivedClassTest","."]
code: def test_block_diag_solve_raises(self):
      matrices1 = []
      for i in range(1, 5):
          matrices1.append(
              linalg.LinearOperatorFullMatrix(
                  linear_operator_test_util.random_normal(
                      [i, i], dtype=dtypes.float32
                  )
              )
          )
      operator1 = block_diag.LinearOperatorBlockDiag(matrices1)
      operator2 = linalg.LinearOperatorFullMatrix(
          linear_operator_test_util.random_normal(
              [15, 3], dtype=dtypes.float32
          )
      )
  
      with self.assertRaisesRegex(
          ValueError, "Operators are incompatible"
      ):
          operator1.solve(operator2)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.linalg import linalg
  from tensorflow.python.ops.linalg import linear_operator_block_diag
  from tensorflow.python.ops.linalg import linear_operator_lower_triangular
  from tensorflow.python.ops.linalg import linear_operator_test_util
  from tensorflow.python.ops.linalg import linear_operator_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the SquareLinearOperatorBlockDiagTest obj's underlying member method code with example usage: obj.test_block_diag_solve_raises() without return types