class_docstr: Display API for the check/suite result objects.
class_docstr_tok: ["Display","API","for","the","check\/suite","result","objects","."]
docstr: Save a result to an HTML file.
  
  Parameters
  ----------
  file : filename or file-like object
      The file to write the HTML output to. If None writes to output.html
  
  Returns
  -------
  Optional[str] :
      name of newly create file
docstr_tok: ["Save","a","result","to","an","HTML","file",".","Parameters","--","--","--","--","--","file",":","filename","or","file-like","object","The","file","to","write","the","HTML","output","to",".","If","None","writes","to","output.html","Returns","--","--","--","-","Optional","[","str","]",":","name","of","newly","create","file"]
code: def save_as_html(
      self, file: t.Union[str, io.TextIOWrapper, None] = None, **kwargs
  ) -> t.Optional[str]:
      """Save a result to an HTML file.
  
      Parameters
      ----------
      file : filename or file-like object
          The file to write the HTML output to. If None writes to output.html
  
      Returns
      -------
      Optional[str] :
          name of newly create file
      """
      raise NotImplementedError()
  
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 12 for calling the DisplayableResult obj's underlying member method code with example usage: obj.save_as_html(file) without return types