class_docstr: Test Pipeline
class_docstr_tok: ["Test","Pipeline"]
code: def test_batch_multi_inputs(self):
      pipe = (
          Pipeline.input("a", "b")
          .flat_map("a", "c", lambda x: x)
          .map(("c", "b"), "d", lambda x, y: x + y)
          .window_all("d", "d", sum)
          .output("d")
      )
  
      batch_inputs = [[[1, 2], 10], [[1, 2, 3], 1], [[1, 3, 5], 2]]
      expect = [23, 9, 15]
      res = pipe.batch(batch_inputs)
      for idx, item in enumerate(res):
          print(item.get()[0], expect[idx])
  
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 23 for calling the TestPipeline obj's underlying member method code with example usage: obj.test_batch_multi_inputs() without return types