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