docstr: Verifies against `Failed precondition: Expected one input shape`.
docstr_tok: ["Verifies","against","`","Failed","precondition",":","Expected","one","input","shape","`","."]
code: def testCondNoInputs(self):
      """Verifies against `Failed precondition: Expected one input shape`."""
  
      with self.session(), self.test_scope():
          xla_context = control_flow_ops.XLAControlFlowContext()
          xla_context.Enter()
  
          for pred in True, False:
              cond_out = cond.cond(
                  array_ops.placeholder_with_default(pred, []),
                  lambda: constant_op.constant(2.0),
                  lambda: constant_op.constant(1.0),
              )
              self.assertEqual(int(pred) + 1.0, self.evaluate(cond_out))
  
          xla_context.Exit()
  
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.client import session
  from tensorflow.python.compiler.xla import xla
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  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 control_flow_ops
  from tensorflow.python.ops import control_flow_switch_case
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the CondTest obj's underlying member method code with example usage: obj.testCondNoInputs() without return types