code: def is_predict(mode):
      return mode in [KerasModeKeys.PREDICT, EstimatorModeKeys.PREDICT]
  
file_path: tensorflow/tensorflow/python/saved_model/model_utils/mode_keys.py
imports: from tensorflow.python.util.compat import collections_abc
label_desc: Use image node_id 1 for calling a global function with example usage: is_predict(mode) and returns: unknown