class_docstr: GraphicsWidget displaying text.
  Used mainly as axis labels, titles, etc.
  
  Note: To display text inside a scaled view (ViewBox, PlotWidget, etc) use TextItem
docstr: Set default text properties. See setText() for accepted parameters.
docstr_tok: ["Set","default","text","properties",".","See","setText","(",")","for","accepted","parameters","."]
code: def setAttr(self, attr, value):
      """Set default text properties. See setText() for accepted parameters."""
      self.opts[attr] = value
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/LabelItem.py
imports: from ..None import functions
  from ..None import getConfigOption
  from ..Qt import QtCore, QtWidgets, QtGui
  from .GraphicsWidget import GraphicsWidget
  from .GraphicsWidgetAnchor import GraphicsWidgetAnchor
label_desc: Use image node_id 2 for calling the LabelItem obj's underlying member method code with example usage: obj.setAttr(attr, value) without return types