code: def setTexts(self, text):
      for i in self.textItems:
          i.scene().removeItem(i)
      self.textItems = []
      for t in text:
          item = pg.TextItem(t)
          self.textItems.append(item)
          item.setParentItem(self)
  
file_path: pyqtgraph/pyqtgraph/examples/CustomGraphItem.py
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 3 for calling the Graph obj's underlying member method code with example usage: obj.setTexts(text) without return types