code: def testInDefun(self):
      self._create_control_flow(False)
  
      @def_function.function
      def defun():
          self._create_control_flow(True)
  
      defun()
      self.assertFalse(control_flow_util_v2.in_defun())
  
file_path: tensorflow/tensorflow/python/kernel_tests/control_flow/control_flow_util_v2_test.py
imports: from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import control_flow_util_v2
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the ControlFlowUtilV2Test obj's underlying member method code with example usage: obj.testInDefun() without return types