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