class_docstr: PipelineProfiler to trace one pipeline.
class_docstr_tok: ["PipelineProfiler","to","trace","one","pipeline","."]
code: def __init__(self, nodes: Dict[str, str]):
      self.time_in = None
      self.time_out = None
      self.data = None
      self.node_tracer = {}
      self.node_report = {}
      for uid, node in nodes.items():
          self.node_tracer[uid] = dict(
              name=node.get("name"),
              iter=node.get("iter_info").get("type"),
              init_in=[],
              init_out=[],
              queue_in=[],
              queue_out=[],
              process_in=[],
              process_out=[],
          )
  
imports: import json
  from typing import Dict, List
  from tabulate import tabulate
  from copy import deepcopy
  from pathlib import Path
  from towhee.runtime.constants import WindowAllConst
  from towhee.runtime.time_profiler import Event
  from towhee.utils.log import engine_log
label_desc: Use image node_id 1 to create a new PipelineProfiler object  with example: obj = PipelineProfiler(nodes)