class_docstr: Visualize the debug information.
code: def _set_previous(self, node_queue):
      for node in self._nodes.values():
          for i in node["next_nodes"]:
              next_node = self._nodes[i]["name"]
              if next_node not in self._trace_nodes:
                  continue
              if "previous" not in node_queue[next_node]:
                  node_queue[next_node]["previous"] = [node["name"]]
              else:
                  node_queue[next_node]["previous"].append(node["name"])
  
imports: import json
  from typing import Union, List, Dict, Any
  from towhee.runtime.time_profiler import TimeProfiler
  from towhee.tools.profilers import PerformanceProfiler
  from towhee.datacollection import DataCollection
  from towhee.utils.lazy_import import LazyImport
  from towhee.utils.log import engine_log
  from towhee.utils.serializer import TritonSerializer, TritonParser
label_desc: Use image node_id 3 for calling the Visualizer obj's underlying member method code with example usage: obj._set_previous(node_queue) without return types