class_docstr: Test that the order of addition is done as specified by tiers.
class_docstr_tok: ["Test","that","the","order","of","addition","is","done","as","specified","by","tiers","."]
code: def test_intermediate_tier_is_not_skipped(self):
      diag1 = linalg.LinearOperatorDiag([1.0])
      diag2 = linalg.LinearOperatorDiag([1.0])
      tril = linalg.LinearOperatorLowerTriangular([[1.0]])
      addition_tiers = [
          [linear_operator_addition._AddAndReturnDiag()],
          [_BadAdder()],
          [linear_operator_addition._AddAndReturnTriL()],
      ]
      # tril cannot be added in tier 0, and the intermediate tier 1 with the
      # BadAdder will catch it and raise.
      with self.assertRaisesRegex(
          AssertionError, "BadAdder.can_add called"
      ):
          add_operators(
              [diag1, diag2, tril], addition_tiers=addition_tiers
          )
  
imports: import numpy
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops.linalg import linalg
  from tensorflow.python.ops.linalg import linear_operator_addition
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the LinearOperatorOrderOfAdditionTest obj's underlying member method code with example usage: obj.test_intermediate_tier_is_not_skipped() without return types