code: def testTrue(self):
      x = array_ops.placeholder(dtype=dtypes.int32, shape=[])
      conditions = [
          (True, lambda: constant_op.constant(1)),
          (x == 0, raise_exception),
      ]
      y = smart_cond.smart_case(
          conditions, default=raise_exception, exclusive=False
      )
      z = smart_cond.smart_case(
          conditions, default=raise_exception, exclusive=True
      )
      with session.Session() as sess:
          # No feed_dict necessary
          self.assertEqual(self.evaluate(y), 1)
          self.assertEqual(self.evaluate(z), 1)
  
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 1 for calling the SmartCaseTest obj's underlying member method code with example usage: obj.testTrue() without return types