code: def global_mode_predict():
      """Returns a bool Tensor indicating whether the global mode is PREDICT."""
      mode = global_mode()
      return tf.equal(mode, tf.estimator.ModeKeys.PREDICT)
  
imports: import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: global_mode_predict() and returns: tf