class_docstr: Serializes any CheckResult instance into HTML format.
  
  Parameters
  ----------
  value : CheckResult
      CheckResult instance that needed to be serialized.
class_docstr_tok: ["Serializes","any","CheckResult","instance","into","HTML","format",".","Parameters","--","--","--","--","--","value",":","CheckResult","CheckResult","instance","that","needed","to","be","serialized","."]
docstr: Serialize a CheckResult instance into HTML format.
  
  Parameters
  ----------
  output_id : Optional[str], default None
      unique output identifier that will be used to form anchor links
  check_sections : Optional[Sequence[Literal['condition-table', 'additional-output']]], default None
      sequence of check result sections to include into the output,
      in case of 'None' all sections will be included
  full_html : bool, default False
      whether to return a fully independent HTML document or only CheckResult content
  include_requirejs : bool, default False
      whether to include requirejs library into output or not
  include_plotlyjs : bool, default True
      whether to include plotlyjs library into output or not
  connected : bool, default True
      whether to use CDN to load js libraries or to inject their code into output
  plotly_to_image : bool, default False
      whether to transform Plotly figure instance into static image or not
  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
  
  Returns
  -------
  str
docstr_tok: ["Serialize","a","CheckResult","instance","into","HTML","format",".","Parameters","--","--","--","--","--","output_id",":","Optional","[","str","]",",","default","None","unique","output","identifier","that","will","be","used","to","form","anchor","links","check_sections",":","Optional","[","Sequence","[","Literal","[","'condition-table","'",",","'additional-output","'","]","]","]",",","default","None","sequence","of","check","result","sections","to","include","into","the","output",",","in","case","of","'None","'","all","sections","will","be","included","full_html",":","bool",",","default","False","whether","to","return","a","fully","independent","HTML","document","or","only","CheckResult","content","include_requirejs",":","bool",",","default","False","whether","to","include","requirejs","library","into","output","or","not","include_plotlyjs",":","bool",",","default","True","whether","to","include","plotlyjs","library","into","output","or","not","connected",":","bool",",","default","True","whether","to","use","CDN","to","load","js","libraries","or","to","inject","their","code","into","output","plotly_to_image",":","bool",",","default","False","whether","to","transform","Plotly","figure","instance","into","static","image","or","not","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","Returns","--","--","--","-","str"]
code: def serialize(
      self,
      output_id: t.Optional[str] = None,
      check_sections: t.Optional[t.Sequence[CheckResultSection]] = None,
      full_html: bool = False,
      include_requirejs: bool = False,
      include_plotlyjs: bool = True,
      connected: bool = True,
      plotly_to_image: bool = False,
      is_for_iframe_with_srcdoc: bool = False,
      **kwargs,
  ) -> str:
      """Serialize a CheckResult instance into HTML format.
  
      Parameters
      ----------
      output_id : Optional[str], default None
          unique output identifier that will be used to form anchor links
      check_sections : Optional[Sequence[Literal['condition-table', 'additional-output']]], default None
          sequence of check result sections to include into the output,
          in case of 'None' all sections will be included
      full_html : bool, default False
          whether to return a fully independent HTML document or only CheckResult content
      include_requirejs : bool, default False
          whether to include requirejs library into output or not
      include_plotlyjs : bool, default True
          whether to include plotlyjs library into output or not
      connected : bool, default True
          whether to use CDN to load js libraries or to inject their code into output
      plotly_to_image : bool, default False
          whether to transform Plotly figure instance into static image or not
      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
  
      Returns
      -------
      str
      """
      if full_html is True:
          include_plotlyjs = True
          include_requirejs = True
          connected = False
  
      sections_to_include = verify_include_parameter(check_sections)
      sections = [
          self.prepare_header(output_id),
          self.prepare_summary(),
      ]
  
      if "condition-table" in sections_to_include:
          sections.append(
              "".join(
                  self.prepare_conditions_table(output_id=output_id)
              )
          )
  
      if "additional-output" in sections_to_include:
          sections.append(
              "".join(
                  self.prepare_additional_output(
                      output_id=output_id,
                      plotly_to_image=plotly_to_image,
                      is_for_iframe_with_srcdoc=is_for_iframe_with_srcdoc,
                  )
              )
          )
  
      plotlyjs = (
          plotlyjs_script(connected) if include_plotlyjs is True else ""
      )
      requirejs = (
          requirejs_script(connected)
          if include_requirejs is True
          else ""
      )
  
      if full_html is False:
          return "".join([requirejs, plotlyjs, *sections])
  
      # TODO: use some style to make it pretty
      return textwrap.dedent(
          f"""
              <html>
              <head><meta charset="utf-8"/></head>
              <body style="background-color: white;">
                  {''.join([requirejs, plotlyjs, *sections])}
              </body>
              </html>
          """
      )
  
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 2 for calling the CheckResultSerializer obj's underlying member method code with example usage: obj.serialize(output_id, check_sections, full_html, include_requirejs, include_plotlyjs, connected, plotly_to_image, is_for_iframe_with_srcdoc) and returns: textwrap, str