class_docstr: Checks the runtime performance of outputting all intermediates.
class_docstr_tok: ["Checks","the","runtime","performance","of","outputting","all","intermediates","."]
code: def benchmark_cond_v1_defun(self):
      old_val = control_flow_util.ENABLE_CONTROL_FLOW_V2
      control_flow_util.ENABLE_CONTROL_FLOW_V2 = False
      self._benchmark_defun()
      control_flow_util.ENABLE_CONTROL_FLOW_V2 = old_val
  
imports: import time
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the CondWithManyIntermediatesBenchmark obj's underlying member method code with example usage: obj.benchmark_cond_v1_defun() without return types