code: def get_result_name(result) -> str:
      """Get Check/Suite result instance name."""
      if hasattr(result, "name"):
          return result.name
      elif hasattr(result, "get_header") and callable(
          getattr(result, "get_header")
      ):
          return result.get_header()
      else:
          return type(result).__name__
  
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 3 for calling a global function with example usage: get_result_name(result) and returns: result, result, type