class_docstr: map node test.
class_docstr_tok: ["map","node","test","."]
code: def test_stopped(self):
      in_que1 = DataQueue(
          [("url", ColumnType.SCALAR), ("num1", ColumnType.QUEUE)]
      )
      in_que2 = DataQueue(
          [("url", ColumnType.SCALAR), ("num2", ColumnType.QUEUE)]
      )
      out_que1 = DataQueue(
          [
              ("url", ColumnType.SCALAR),
              ("num1", ColumnType.QUEUE),
              ("num2", ColumnType.QUEUE),
          ]
      )
      out_que2 = DataQueue([("num1", ColumnType.QUEUE)])
  
      node = create_node(
          self.node_repr,
          self.op_pool,
          [in_que1, in_que2],
          [out_que1, out_que2],
      )
      self.assertTrue(node.initialize())
      f = self.thread_pool.submit(node.process)
      out_que1.seal()
  
      def write(size):
          for i in range(size):
              if not in_que1.put(("test_url", i)):
                  return
              time.sleep(0.01)
              if not in_que2.put(("test_url", i + 1)):
                  return
          in_que1.seal()
          in_que2.seal()
  
      size = 10
      w_f = self.thread_pool.submit(write, size)
      w_f.result()
      f.result()
      self.assertTrue(node.status == NodeStatus.STOPPED)
      self.assertEqual(out_que1.size, 0)
      self.assertEqual(out_que2.size, 0)
      self.assertTrue(out_que1.sealed)
      self.assertTrue(out_que2.sealed)
  
file_path: towhee/tests/unittests/runtime/test_concat.py
imports: import unittest
  import time
  import uuid
  from concurrent.futures import ThreadPoolExecutor
  from towhee.runtime.node_repr import NodeRepr
  from towhee.runtime.nodes import create_node, NodeStatus
  from towhee.runtime.data_queue import DataQueue, ColumnType, Empty
  from towhee.runtime.operator_manager import OperatorPool
label_desc: Use image node_id 5 for calling the TestMapNode obj's underlying member method code with example usage: obj.test_stopped() without return types