code: def IsLoopExit(op):
      """Return true if `op` is an Exit."""
      return op.type == "Exit" or op.type == "RefExit"
  
imports: import os
  import traceback
  from tensorflow.python import tf2
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 11 for calling a global function with example usage: IsLoopExit(op) and returns: unknown