code: def _pyqt5():
      
  
      import PyQt5 as module
      _setup(module, ["uic"])
  
      try:
          import sip
          Qt.QtCompat.wrapInstance = (
              lambda ptr, base=None: _wrapinstance(
                  sip.wrapinstance, ptr, base)
          )
          Qt.QtCompat.getCppPointer = lambda object: \
              sip.unwrapinstance(object)
  
      except ImportError:
          pass  # Optional
  
      if hasattr(Qt, "_uic"):
          Qt.QtCompat.loadUi = _loadUi
  
      if hasattr(Qt, "_QtCore"):
          Qt.__binding_version__ = Qt._QtCore.PYQT_VERSION_STR
          Qt.__qt_version__ = Qt._QtCore.QT_VERSION_STR
          Qt.QtCompat.qInstallMessageHandler = _qInstallMessageHandler
          Qt.QtCompat.translate = Qt._QtCore.QCoreApplication.translate
  
      if hasattr(Qt, "_QtWidgets"):
          Qt.QtCompat.setSectionResizeMode = \
              Qt._QtWidgets.QHeaderView.setSectionResizeMode
  
      _reassign_misplaced_members("PyQt5")
      _build_compatibility_members('PyQt5')
docs: Initialise PyQt5