code: def _pyside2():
      
  
      import PySide2 as module
      extras = ["QtUiTools"]
      try:
          try:
              # Before merge of PySide and shiboken
              import shiboken2
          except ImportError:
              # After merge of PySide and shiboken, May 2017
              from PySide2 import shiboken2
          extras.append("shiboken2")
      except ImportError:
          pass
  
      _setup(module, extras)
      Qt.__binding_version__ = module.__version__
  
      if hasattr(Qt, "_shiboken2"):
          Qt.QtCompat.wrapInstance = _wrapinstance
          Qt.QtCompat.getCppPointer = _getcpppointer
          Qt.QtCompat.delete = shiboken2.delete
  
      if hasattr(Qt, "_QtUiTools"):
          Qt.QtCompat.loadUi = _loadUi
  
      if hasattr(Qt, "_QtCore"):
          Qt.__qt_version__ = Qt._QtCore.qVersion()
  
      if hasattr(Qt, "_QtWidgets"):
          Qt.QtCompat.setSectionResizeMode = \
              Qt._QtWidgets.QHeaderView.setSectionResizeMode
  
      _reassign_misplaced_members("PySide2")
      _build_compatibility_members("PySide2")
docs: Initialise PySide2
  
      These functions serve to test the existence of a binding
      along with set it up in such a way that it aligns with
      the final step; adding members from the original binding
      to Qt.py