code: def test_tf2_enable_tf2_behaviour(self):
      self.assertTrue(tf2.enabled())
      self.assertTrue(_pywrap_tf2.is_enabled())
  
      v2_compat.enable_v2_behavior()
      self.assertTrue(tf2.enabled())
      self.assertTrue(_pywrap_tf2.is_enabled())
  
      v2_compat.disable_v2_behavior()
      self.assertFalse(tf2.enabled())
      self.assertFalse(_pywrap_tf2.is_enabled())
  
file_path: tensorflow/tensorflow/python/framework/tf2_test.py
imports: from absl.testing import parameterized
  from tensorflow.python import tf2
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.framework import combinations
  from tensorflow.python.platform import _pywrap_tf2
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the EnablingTF2Behavior obj's underlying member method code with example usage: obj.test_tf2_enable_tf2_behaviour() without return types