class_docstr: Visualize the data from single pipeline execution.
class_docstr_tok: ["Visualize","the","data","from","single","pipeline","execution","."]
code: def __getitem__(self, name: str):
      candidates = []
      for node in self.nodes:
          if re.search(name, node):
              candidates.append(node)
  
      if not candidates:
          engine_log.error(
              "Node %s does not match any existing nodes. This pipeline contains following nodes: %s",
              name,
              self.nodes,
          )
          raise KeyError(
              "Node %s does not match any existing nodes. This pipeline contains following nodes: %s"
              % (name, self.nodes)
          )
      if len(candidates) == 1:
          return NodeVisualizer(
              candidates[0], self._node_collection[candidates[0]]
          )
      else:
          return [
              NodeVisualizer(i, self._node_collection[i])
              for i in candidates
          ]
  
imports: import re
  from typing import Dict, Any, List
  from towhee.utils.log import engine_log
label_desc: Use image node_id 4 for calling the PipeVisualizer obj's underlying member method code with example usage: obj.__getitem__(name) and returns: NodeVisualizer, unknown