code: def control_flow_v2_enabled():  # pylint: disable=invalid-name
      """Returns `True` if v2 control flow is enabled.
  
      Note: v2 control flow is always enabled inside of tf.function.
      """
      return control_flow_util.EnableControlFlowV2(
          ops.get_default_graph()
      )
  
imports: from tensorflow.python.framework import ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling a global function with example usage: control_flow_v2_enabled() and returns: control_flow_util