code: def display_in_gui(result):
      """Display suite result or check result in a new python gui window."""
      try:
          required = {"pyqt5", "pyqtwebengine"}
          # List of all packages installed (key is always in all small case!)
          installed = {
              pkg.key for pkg in list(pkg_resources.working_set)
          }
          missing = required - installed
          if missing:
              get_logger().warning(
                  'Missing packages in order to display result in GUI. either run "pip install %s"'
                  ' or use "result.save_as_html()" to save result',
                  {" ".join(missing)},
              )
              return
          from PyQt5.QtWebEngineWidgets import (
              QWebEngineView,
          )  # pylint: disable=import-outside-toplevel
          from PyQt5.QtWidgets import (
              QApplication,
          )  # pylint: disable=import-outside-toplevel
  
          app = QApplication(sys.argv)
  
          web = QWebEngineView()
          web.setWindowTitle("deepchecks")
          web.setGeometry(0, 0, 1200, 1200)
  
          html_out = StringIO()
          result.save_as_html(html_out)
          web.setHtml(html_out.getvalue())
          web.show()
  
          sys.exit(app.exec_())
      except Exception:  # pylint: disable=broad-except
          get_logger().error(
              "Unable to show result, run in an interactive environment"
              ' or use "result.save_as_html()" to save result'
          )
  
imports: import base64
  from deepchecks.utils.logger import get_logger
  import sys
  from io import StringIO
  import pkg_resources
label_desc: Use image node_id 2 for calling a global function with example usage: display_in_gui(result) without return types