code: def loaded_api():
      """Return which API is loaded, if any
  
      If this returns anything besides None,
      importing any other Qt binding is unsafe.
  
      Returns
      -------
      None, 'pyside6', 'pyqt6', 'pyside2', 'pyside', 'pyqt', 'pyqt5', 'pyqtv1'
      """
      if sys.modules.get("PyQt6.QtCore"):
          return QT_API_PYQT6
      elif sys.modules.get("PySide6.QtCore"):
          return QT_API_PYSIDE6
      elif sys.modules.get("PyQt5.QtCore"):
          return QT_API_PYQT5
      elif sys.modules.get("PySide2.QtCore"):
          return QT_API_PYSIDE2
      elif sys.modules.get("PyQt4.QtCore"):
          if qtapi_version() == 2:
              return QT_API_PYQT
          else:
              return QT_API_PYQTv1
      elif sys.modules.get("PySide.QtCore"):
          return QT_API_PYSIDE
  
      return None
  
imports: import importlib.abc
  import sys
  import os
  import types
  from functools import partial, lru_cache
  import operator
label_desc: Use image node_id 2 for calling a global function with example usage: loaded_api() and returns: None, QT_API_PYQT6, QT_API_PYSIDE6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYQT, QT_API_PYQTv1, QT_API_PYSIDE