code: def display_in_gui(result: DisplayableResult):
      """Display suite result or check result in a new python gui window."""
      try:
          from PyQt5.QtCore import (
              QUrl,
          )  # pylint: disable=W0611,C0415 # noqa
          from PyQt5.QtWebEngineWidgets import (
              QWebEngineView,
          )  # pylint: disable=W0611,C0415 # noqa
          from PyQt5.QtWidgets import (
              QApplication,
          )  # pylint: disable=W0611,C0415 # noqa
      except ImportError:
          get_logger().error(
              "Missing packages in order to display result in GUI, "
              'either run "pip install pyqt5, pyqtwebengine" '
              'or use "result.save_as_html()" to save result'
          )
      else:
          with NamedTemporaryFile(
              suffix=".html", prefix="deepchecks-", delete=False
          ) as file:
              result.save_as_html(io.TextIOWrapper(file))
              filepath = file.name
  
          # If running under "__filename__ == __main__" then we can spawn a new process. Else run the function directly.
          if getattr(process.current_process(), "_inheriting", False):
              _open_file_in_window(filepath)
          else:
              ctx = get_context("spawn")
              ctx.Process(
                  target=_open_file_in_window, args=(str(filepath),)
              ).start()
  
imports: import abc
  import html
  import io
  import pathlib
  import sys
  import typing
  from multiprocessing import get_context, process
  from tempfile import NamedTemporaryFile
  from IPython.core.display import display, display_html
  from ipywidgets import Widget
  from deepchecks.core.serialization.abc import HTMLFormatter, HtmlSerializer, IPythonSerializer, WidgetSerializer
  from deepchecks.utils.ipython import is_colab_env, is_databricks_env, is_kaggle_env, is_sagemaker_env, is_sphinx
  from deepchecks.utils.logger import get_logger
  from deepchecks.utils.strings import create_new_file_name, get_random_string, widget_to_html, widget_to_html_string
label_desc: Use image node_id 2 for calling a global function with example usage: display_in_gui(result) without return types