code: def testOutputAllIntermediates(self):
      self.assertIsNone(
          control_flow_util_v2._EXPERIMENTAL_OUTPUT_ALL_INTERMEDIATES_OVERRIDE
      )
      control_flow_util_v2.set_output_all_intermediates(True)
      self.assertTrue(
          control_flow_util_v2._EXPERIMENTAL_OUTPUT_ALL_INTERMEDIATES_OVERRIDE
      )
      control_flow_util_v2.set_output_all_intermediates(False)
      self.assertFalse(
          control_flow_util_v2._EXPERIMENTAL_OUTPUT_ALL_INTERMEDIATES_OVERRIDE
      )
      control_flow_util_v2.set_output_all_intermediates(None)
      self.assertIsNone(
          control_flow_util_v2._EXPERIMENTAL_OUTPUT_ALL_INTERMEDIATES_OVERRIDE
      )
  
imports: from tensorflow.python.ops import control_flow_util_v2
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ControlFlowV2TogglesTest obj's underlying member method code with example usage: obj.testOutputAllIntermediates() without return types