class_docstr: Visualize the debug information.
code: def _get_collection(node_info):
      def _to_collection(x):
          for idx, q in enumerate(x):
              if not q.size:
                  q.reset_size()
              tmp = DataCollection(q)
              q.reset_size()
              x[idx] = tmp
  
      for v in node_info.values():
          _to_collection(v["in"])
          _to_collection(v["out"])
  
      return node_info
  
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 4 for calling the Visualizer obj's underlying member method code with example usage: obj._get_collection(node_info) and returns: node_info