class_docstr: Visualize the data of a node.
class_docstr_tok: ["Visualize","the","data","of","a","node","."]
code: def _prepare_data(self, show_inputs: bool, show_outputs: bool):
      headers = ["NodeInfo"]
      data = [
          {
              "headers": ["item", "info"],
              "data": [
                  ["NodeName", self._name],
                  ["NodeType", self._data.get("type")],
                  ["InputSchema", self._data.get("op_input")],
                  ["OutputSchema", self._data.get("op_output")],
                  ["Operator", self._data.get("operator")],
              ],
          }
      ]
  
      if show_inputs:
          headers.append("Inputs")
          data.append(
              {
                  "headers": self._previous
                  if self._previous
                  else ["PipeInput"],
                  "data": [
                      [dc.prepare_table_data(-1) for dc in self._in]
                  ],
              }
          )
      if show_outputs:
          headers.append("Outputs")
          data.append(
              {
                  "headers": self._next
                  if self._next
                  else ["PipeOutput"],
                  "data": [
                      [dc.prepare_table_data(-1) for dc in self._out]
                  ],
              }
          )
      return {"headers": headers, "data": [data]}
  
imports: import re
  from typing import Dict, Any, List
  from towhee.utils.log import engine_log
label_desc: Use image node_id 8 for calling the NodeVisualizer obj's underlying member method code with example usage: obj._prepare_data(show_inputs, show_outputs) and returns: dict