def METHOD_NAME(self):        
    if isinstance(self.item, GraphicsScene):
        return self.item.getViewWidget().rect()
    else:
        return self.item.mapRectToDevice(self.item.boundingRect())