code: def import_pyqt6():
      """
      Import PyQt6
  
      ImportErrors raised within this function are non-recoverable
      """
  
      from PyQt6 import QtCore, QtSvg, QtWidgets, QtGui
  
      # Alias PyQt-specific functions for PySide compatibility.
      QtCore.Signal = QtCore.pyqtSignal
      QtCore.Slot = QtCore.pyqtSlot
  
      # Join QtGui and QtWidgets for Qt4 compatibility.
      QtGuiCompat = types.ModuleType("QtGuiCompat")
      QtGuiCompat.__dict__.update(QtGui.__dict__)
      QtGuiCompat.__dict__.update(QtWidgets.__dict__)
  
      api = QT_API_PYQT6
      return QtCore, QtGuiCompat, QtSvg, api
  
imports: import importlib.abc
  import sys
  import os
  import types
  from functools import partial, lru_cache
  import operator
label_desc: Use image node_id 8 for calling a global function with example usage: import_pyqt6() and returns: QtCore,  QtGuiCompat,  QtSvg,  api