code: def setData(self, **kwds):
      self.text = kwds.pop("text", [])
      self.data = kwds
      if "pos" in self.data:
          npts = self.data["pos"].shape[0]
          self.data["data"] = np.empty(npts, dtype=[("index", int)])
          self.data["data"]["index"] = np.arange(npts)
      self.setTexts(self.text)
      self.updateGraph()
  
file_path: pyqtgraph/pyqtgraph/examples/CustomGraphItem.py
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.setData() without return types