code: def IsLoopSwitch(op):
      """Return true if `op` is the Switch for a while loop."""
      if IsSwitch(op):
          ctxt = (
              op._get_control_flow_context()
          )  # pylint: disable=protected-access
          return (
              ctxt is not None
              and ctxt.IsWhileContext()
              and not IsCondSwitch(op)
          )
      return False
  
imports: import os
  import traceback
  from tensorflow.python import tf2
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 14 for calling a global function with example usage: IsLoopSwitch(op) and returns: False, unknown