class_docstr: Test Pipeline
class_docstr_tok: ["Test","Pipeline"]
code: def test_local(self):
      pipe1 = (
          Pipeline.input("a")
          .map("a", "c", ops.local.add_operator(10))
          .output("c")
      )
      (c10,) = pipe1(2).get()
      self.assertEqual(c10.sum, 12)
      (c11,) = pipe1(3).get()
      self.assertEqual(c11.sum, 13)
  
      pipe2 = (
          Pipeline.input("a")
          .map("a", "c", ops.local.add_operator(10))
          .output("a", "c")
      )
      a2, c2 = pipe2(2).get()
      self.assertEqual(a2, 2)
      self.assertEqual(c2.sum, 12)
  
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 6 for calling the TestPipeline obj's underlying member method code with example usage: obj.test_local() without return types