code: def testPlaceholderWithDefault(self):
      with ops.Graph().as_default():
          with session.Session():
              x = array_ops.placeholder_with_default(1, shape=())
              y = smart_cond.smart_cond(
                  x > 0,
                  lambda: constant_op.constant(1),
                  lambda: constant_op.constant(2),
              )
              self.assertEqual(self.evaluate(y), 1)
              self.assertEqual(y.eval(feed_dict={x: -1}), 2)
  
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 5 for calling the SmartCondTest obj's underlying member method code with example usage: obj.testPlaceholderWithDefault() without return types