code: def test_tensor(self):
      self.assertEqual(
          self.evaluate(_basic_expr(constant_op.constant(True))), 1
      )
      self.assertEqual(
          self.evaluate(_basic_expr(constant_op.constant(False))), 2
      )
  
file_path: tensorflow/tensorflow/python/autograph/operators/conditional_expressions_test.py
imports: from tensorflow.python.autograph.operators import conditional_expressions
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the IfExpTest obj's underlying member method code with example usage: obj.test_tensor() without return types