class_docstr: Window
class_docstr_tok: ["Window"]
code: def _test_function(self, node_info, exp_ret1, exp_ret2):
      in_que = DataQueue(
          [("num1", ColumnType.SCALAR), ("num2", ColumnType.QUEUE)]
      )
      in_que.put((1, 1))
      in_que.put((1, 2))
      in_que.put((1, 3))
      in_que.put((1, 4))
      in_que.seal()
      out_que1 = DataQueue(
          [
              ("num1", ColumnType.SCALAR),
              ("num2", ColumnType.QUEUE),
              ("sum1", ColumnType.QUEUE),
              ("sum2", ColumnType.QUEUE),
          ]
      )
  
      out_que2 = DataQueue(
          [
              ("num1", ColumnType.SCALAR),
              ("sum1", ColumnType.QUEUE),
              ("sum2", ColumnType.QUEUE),
          ]
      )
  
      node = create_node(
          NodeRepr(uid="test_node", **node_info),
          self.op_pool,
          [in_que],
          [out_que1, out_que2],
      )
      self.assertTrue(node.initialize())
      f = self.thread_pool.submit(node.process)
      f.result()
      self.assertTrue(node.status == NodeStatus.FINISHED)
      self.assertTrue(out_que1.sealed)
      self.assertTrue(out_que2.sealed)
      self.assertTrue(out_que1.size == 4)
      self.assertTrue(out_que2.size == 2)
  
      ret = []
      while out_que1.size > 0:
          ret.append(out_que1.get_dict())
      self.assertEqual(ret, exp_ret1)
  
      ret = []
      while out_que2.size > 0:
          ret.append(out_que2.get_dict())
      self.assertEqual(ret, exp_ret2)
  
imports: import unittest
  import time
  import copy
  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.nodes._window import _WindowBuffer
  from towhee.runtime.data_queue import DataQueue, ColumnType, Empty
  from towhee.runtime.operator_manager import OperatorPool
label_desc: Use image node_id 2 for calling the TestWindowNode obj's underlying member method code with example usage: obj._test_function(node_info, exp_ret1, exp_ret2) without return types