class_docstr: Unit tests for Visualizer.
class_docstr_tok: ["Unit","tests","for","Visualizer","."]
code: def test_profiler(self):
      p = (
          pipe.input("a")
          .map("a", "b", lambda x: x + 1)
          .output("a", "b")
      )
  
      _ = p.debug(1, profiler=True)
      _ = p.debug(2, profiler=True)
      v = p.debug(3, profiler=True)
      pp = v.profiler
  
      self.assertEqual(len(pp._time_prfilers), 1)
  
      pp.show()
  
file_path: towhee/tests/unittests/tools/test_visualizer.py
imports: import unittest
  from towhee import pipe
  from towhee.tools import visualizer
  from towhee.tools.visualizer import Visualizer
  from towhee.runtime.data_queue import DataQueue
label_desc: Use image node_id 6 for calling the TestVisualizer obj's underlying member method code with example usage: obj.test_profiler() without return types