class_docstr: Most tests done in the base class LinearOperatorDerivedClassTest.
class_docstr_tok: ["Most","tests","done","in","the","base","class","LinearOperatorDerivedClassTest","."]
code: def test_diag_solve(self):
      operator1 = linalg_lib.LinearOperatorDiag(
          [2.0, 3.0], is_non_singular=True
      )
      operator2 = linalg_lib.LinearOperatorDiag(
          [1.0, 2.0], is_non_singular=True
      )
      operator3 = linalg_lib.LinearOperatorScaledIdentity(
          num_rows=2, multiplier=3.0, is_non_singular=True
      )
      operator_solve = operator1.solve(operator2)
      self.assertTrue(
          isinstance(operator_solve, linalg_lib.LinearOperatorDiag)
      )
      self.assertAllClose(
          [0.5, 2 / 3.0], self.evaluate(operator_solve.diag)
      )
  
      operator_solve = operator2.solve(operator1)
      self.assertTrue(
          isinstance(operator_solve, linalg_lib.LinearOperatorDiag)
      )
      self.assertAllClose(
          [2.0, 3 / 2.0], self.evaluate(operator_solve.diag)
      )
  
      operator_solve = operator1.solve(operator3)
      self.assertTrue(
          isinstance(operator_solve, linalg_lib.LinearOperatorDiag)
      )
      self.assertAllClose(
          [3 / 2.0, 1.0], self.evaluate(operator_solve.diag)
      )
  
      operator_solve = operator3.solve(operator1)
      self.assertTrue(
          isinstance(operator_solve, linalg_lib.LinearOperatorDiag)
      )
      self.assertAllClose(
          [2 / 3.0, 1.0], self.evaluate(operator_solve.diag)
      )
  
imports: from tensorflow.python.framework import config
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.linalg import linalg
  from tensorflow.python.ops.linalg import linear_operator_test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the LinearOperatorDiagTest obj's underlying member method code with example usage: obj.test_diag_solve() without return types