class_docstr: map node test.
class_docstr_tok: ["map","node","test","."]
code: def test_multithread(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)
  
      def write(size):
          for i in range(size):
              in_que1.put(("test_url", i))
              time.sleep(0.01)
              in_que2.put(("test_url", i + 1))
          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.FINISHED)
      self.assertEqual(out_que1.size, size)
      self.assertEqual(out_que2.size, size)
      for i in range(size):
          self.assertEqual(
              out_que1.get_dict(),
              {"url": "test_url", "num1": i, "num2": i + 1},
          )
  
      for i in range(size):
          self.assertEqual(out_que2.get_dict(), {"num1": i})
      self.assertEqual(out_que1.size, 0)
      self.assertEqual(out_que2.size, 0)
      self.assertIsNone(out_que1.get())
      self.assertIsNone(out_que2.get())
  
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 3 for calling the TestMapNode obj's underlying member method code with example usage: obj.test_multithread() without return types