code: def is_tfv2():
      """
      Returns whether tensorflow is operating in V2 mode.
      """
      try:
          from tensorflow.python import tf2
  
          return tf2.enabled()
      except Exception:
          return False
  
label_desc: Use image node_id 2 for calling a global function with example usage: is_tfv2() and returns: tf2, False