code: def testIsLoopSwitch(self):
      g = self.build_test_graph()
  
      loop_switch = ["OuterCond/cond/OuterWhile/while/Switch_1"]
      for n in g.get_operations():
          if control_flow_util.IsSwitch(n):
              self.assertTrue(
                  control_flow_util.IsCondSwitch(n)
                  != control_flow_util.IsLoopSwitch(n)
              )
          if n.name in loop_switch:
              self.assertTrue(control_flow_util.IsSwitch(n))
              self.assertFalse(
                  control_flow_util.IsCondSwitch(n),
                  msg="Mismatch for {}".format(n.name),
              )
              self.assertTrue(
                  control_flow_util.IsLoopSwitch(n),
                  msg="Mismatch for {}".format(n.name),
              )
          else:
              self.assertFalse(
                  control_flow_util.IsLoopSwitch(n),
                  msg="Mismatch for {}".format(n.name),
              )
  
imports: from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import gen_control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the ControlFlowUtilTest obj's underlying member method code with example usage: obj.testIsLoopSwitch() without return types