class_docstr: Unit test for PerformanceProfiler.
class_docstr_tok: ["Unit","test","for","PerformanceProfiler","."]
code: def test_in_batch(self):
      pipe0 = (
          pipe.input("a", "b", "c")
          .map("c", "c", lambda x: x + 1)
          .filter("c", "d", ("a", "b"), lambda x, y: x > 10)
          .output("a", "b", "c", "d")
      )
      v = pipe0.debug([(5, 6, 7)] * 10, batch=True, profiler=True)
  
      pp = v.profiler
      self.assertEqual(len(pp.pipes_profiler), 10)
      self.assertEqual(len(pp.node_report), 4)
  
imports: import json
  import unittest
  from pathlib import Path
  from towhee import pipe
  from towhee import ops, register
  from towhee.runtime.time_profiler import TimeProfiler
  from towhee.tools.profilers import PerformanceProfiler
label_desc: Use image node_id 7 for calling the TestPerformanceProfiler obj's underlying member method code with example usage: obj.test_in_batch() without return types