code: def sizeHint(self):
      if self.orientation == "vertical":
          if hasattr(self, "hint"):
              return QtCore.QSize(self.hint.height(), self.hint.width())
          else:
              return QtCore.QSize(19, 50)
      else:
          if hasattr(self, "hint"):
              return QtCore.QSize(self.hint.width(), self.hint.height())
          else:
              return QtCore.QSize(50, 19)
  
file_path: pyqtgraph/pyqtgraph/widgets/VerticalLabel.py
imports: import warnings
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 4 for calling the VerticalLabel obj's underlying member method code with example usage: obj.sizeHint() and returns: QtCore, QtCore, QtCore, QtCore