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
code: def updateMin(self):
      bounds = self.itemRect()
      self.setMinimumWidth(bounds.width())
      self.setMinimumHeight(bounds.height())
  
      self._sizeHint = {
          QtCore.Qt.SizeHint.MinimumSize: (
              bounds.width(),
              bounds.height(),
          ),
          QtCore.Qt.SizeHint.PreferredSize: (
              bounds.width(),
              bounds.height(),
          ),
          QtCore.Qt.SizeHint.MaximumSize: (
              -1,
              -1,
          ),  # bounds.width()*2, bounds.height()*2),
          QtCore.Qt.SizeHint.MinimumDescent: (0, 0),  ##?? what is this?
      }
      self.updateGeometry()
  
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 6 for calling the LabelItem obj's underlying member method code with example usage: obj.updateMin() without return types