code: def init_qt_clipboard():
      # $DISPLAY should exist
  
      # Try to import from qtpy, but if that fails try PyQt5 then PyQt4
      try:
          from qtpy.QtWidgets import QApplication
      except ImportError:
          try:
              from PyQt5.QtWidgets import QApplication
          except ImportError:
              from PyQt4.QtGui import QApplication
  
      app = QApplication.instance()
      if app is None:
          app = QApplication([])
  
      def copy_qt(text):
          cb = app.clipboard()
          cb.setText(text)
  
      def paste_qt():
          cb = app.clipboard()
          return text_type(cb.text())
  
      return copy_qt, paste_qt
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/clipboard/clipboards.py
imports: import subprocess
  from pandas.compat import PY2, text_type
  from .exceptions import PyperclipException
label_desc: Use image node_id 3 for calling a global function with example usage: init_qt_clipboard() and returns: copy_qt,  paste_qt, text_type