class_docstr: Test Pipeline
class_docstr_tok: ["Test","Pipeline"]
code: def test_window_all(self):
      pipe = (
          Pipeline.input("n1", "n2")
          .flat_map(
              ("n1", "n2"), ("n1", "n2"), lambda x, y: list(zip(x, y))
          )
          .window_all(("n1", "n2"), ("s1", "s2"), ops.local.sum2())
          .output("s1", "s2")
      )
      res = pipe([1, 2, 3, 4], [2, 3, 4, 5])
      self.assertEqual(res.get(), [10, 14])
  
      pipe = (
          Pipeline.input("x")
          .map("x", "z", lambda x: [i + 1 for i in range(x)])
          .flat_map("z", "x", NOPNodeOperator())
          .window_all("x", "y", lambda x: sum(x))
          .map("y", "z", lambda x: x * 10)
          .map("z", "x", NOPNodeOperator())
          .output("x")
      )
      res = pipe(4)
      self.assertEqual(res.get(), [100])
  
imports: import unittest
  from towhee.operator.nop import NOPNodeOperator
  from towhee.operator import PyOperator
  from towhee.runtime.pipeline import Pipeline
  from towhee.runtime.data_queue import Empty
  from towhee.runtime import ops, register
  from towhee.runtime.runtime_pipeline import RuntimePipeline
label_desc: Use image node_id 19 for calling the TestPipeline obj's underlying member method code with example usage: obj.test_window_all() without return types