code: def is_v2_behavior_enabled():
      """Returns if user called tf.enable_v2_behavior."""
  
      # Since there is no actual tf.is_v2_behavior enabled, check that the
      # settings were enabled.
      return tf2.enabled()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from distutils.version import LooseVersion
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow.python import tf2
  from tensorflow.python.keras.metrics import Metric
  from tensorflow.python.tpu import tpu_function
  from tensorflow_estimator.python.estimator.head import regression_head
label_desc: Use image node_id 10 for calling a global function with example usage: is_v2_behavior_enabled() and returns: tf2