code: def testMix(self):
      x = array_ops.placeholder(dtype=dtypes.int32, shape=[])
      y = constant_op.constant(10)
      conditions = [
          (x > 1, lambda: constant_op.constant(1)),
          (y < 1, raise_exception),
          (False, raise_exception),
          (True, lambda: constant_op.constant(3)),
      ]
      z = smart_cond.smart_case(conditions, default=raise_exception)
      with session.Session() as sess:
          self.assertEqual(sess.run(z, feed_dict={x: 2}), 1)
          self.assertEqual(sess.run(z, feed_dict={x: 0}), 3)
  
imports: from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import smart_cond
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the SmartCaseTest obj's underlying member method code with example usage: obj.testMix() without return types