class_docstr: Auxiliary class to decouple display handling logic from other functionality.
class_docstr_tok: ["Auxiliary","class","to","decouple","display","handling","logic","from","other","functionality","."]
docstr: Serialize CheckResult display items into HTML.
  
  Parameters
  ----------
  display : List[Union[str, DataFrame, Styler, BaseFigure, Callable, DisplayMap]]
      list of display items
  output_id : Optional[str], default None
      unique output identifier that will be used to form anchor links
  is_for_iframe_with_srcdoc : bool, default False
      anchor links, in order to work within iframe require additional prefix
      'about:srcdoc'. This flag tells function whether to add that prefix to
      the anchor links or not
  include_header: bool, default True
      whether to include header
  include_trailing_link: bool, default True
      whether to include "go to top" link
  
  Returns
  -------
  List[str]
docstr_tok: ["Serialize","CheckResult","display","items","into","HTML",".","Parameters","--","--","--","--","--","display",":","List","[","Union","[","str",",","DataFrame",",","Styler",",","BaseFigure",",","Callable",",","DisplayMap","]","]","list","of","display","items","output_id",":","Optional","[","str","]",",","default","None","unique","output","identifier","that","will","be","used","to","form","anchor","links","is_for_iframe_with_srcdoc",":","bool",",","default","False","anchor","links",",","in","order","to","work","within","iframe","require","additional","prefix","'about",":","srcdoc","'",".","This","flag","tells","function","whether","to","add","that","prefix","to","the","anchor","links","or","not","include_header",":","bool",",","default","True","whether","to","include","header","include_trailing_link",":","bool",",","default","True","whether","to","include","``","go","to","top","''","link","Returns","--","--","--","-","List","[","str","]"]
code: def handle_display(
      cls,
      display: t.List["check_types.TDisplayItem"],
      output_id: t.Optional[str] = None,
      is_for_iframe_with_srcdoc: bool = False,
      include_header: bool = True,
      include_trailing_link: bool = True,
      **kwargs,
  ) -> t.List[str]:
      """Serialize CheckResult display items into HTML.
  
      Parameters
      ----------
      display : List[Union[str, DataFrame, Styler, BaseFigure, Callable, DisplayMap]]
          list of display items
      output_id : Optional[str], default None
          unique output identifier that will be used to form anchor links
      is_for_iframe_with_srcdoc : bool, default False
          anchor links, in order to work within iframe require additional prefix
          'about:srcdoc'. This flag tells function whether to add that prefix to
          the anchor links or not
      include_header: bool, default True
          whether to include header
      include_trailing_link: bool, default True
          whether to include "go to top" link
  
      Returns
      -------
      List[str]
      """
      output = [cls.header()] if include_header else []
      output.extend(
          super().handle_display(
              display, **{"output_id": output_id, **kwargs}
          )
      )
  
      if len(display) == 0:
          output.append(cls.empty_content_placeholder())
  
      if output_id is not None and include_trailing_link:
          output.append(
              cls.go_to_top_link(
                  output_id,
                  is_for_iframe_with_srcdoc=is_for_iframe_with_srcdoc,
              )
          )
  
      return output
  
imports: import textwrap
  import typing
  from plotly.basedatatypes import BaseFigure
  from plotly.io import to_html
  from typing_extensions import Literal
  from deepchecks.core import check_result
  from deepchecks.core.resources import requirejs_script
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, HtmlSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, form_output_anchor, plotlyjs_script
  from deepchecks.core.serialization.dataframe.html import DataFrameSerializer
  from deepchecks.utils.html import imagetag, linktag
label_desc: Use image node_id 1 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_display(cls, display, output_id, is_for_iframe_with_srcdoc, include_header, include_trailing_link) and returns: output