code: def boundingRect(self):
      geometry = self.geometry()
      if geometry != self._previousGeometry:
          self._painterPathCache = None
          br = self.mapRectFromParent(geometry).normalized()
          self._boundingRectCache = br
          self._previousGeometry = geometry
      else:
          br = self._boundingRectCache
      return QtCore.QRectF(br)
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/GraphicsWidget.py
imports: from ..Qt import QtCore, QtGui, QtWidgets
  from .GraphicsItem import GraphicsItem
label_desc: Use image node_id 7 for calling the GraphicsWidget obj's underlying member method code with example usage: obj.boundingRect() and returns: QtCore