class_docstr: Serializes any SuiteResult instance into HTML format.
  
  Parameters
  ----------
  value : SuiteResult
      SuiteResult instance that needed to be serialized.
docstr: Serialize a SuiteResult instance into HTML format.
  
  Parameters
  ----------
  output_id : Optional[str], default None
      unique output identifier that will be used to form anchor links
  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
  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
  **kwargs :
      all other key-value arguments will be passed to the CheckResult/CheckFailure
      serializers
  
  Returns
  -------
  str
docstr_tok: ["Serialize","a","SuiteResult","instance","into","HTML","format",".","Parameters","--","--","--","--","--","output_id",":","Optional","[","str","]",",","default","None","unique","output","identifier","that","will","be","used","to","form","anchor","links","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","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","*","*","kwargs",":","all","other","key-value","arguments","will","be","passed","to","the","CheckResult\/CheckFailure","serializers","Returns","--","--","--","-","str"]
code: def serialize(
      self,
      output_id: t.Optional[str] = None,
      full_html: bool = False,
      include_requirejs: bool = False,
      include_plotlyjs: bool = True,
      connected: bool = True,
      is_for_iframe_with_srcdoc: bool = False,
      **kwargs,
  ) -> str:
      """Serialize a SuiteResult instance into HTML format.
  
      Parameters
      ----------
      output_id : Optional[str], default None
          unique output identifier that will be used to form anchor links
      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
      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
      **kwargs :
          all other key-value arguments will be passed to the CheckResult/CheckFailure
          serializers
  
      Returns
      -------
      str
      """
      if full_html is True:
          include_plotlyjs = True
          include_requirejs = True
          connected = False
  
      kwargs["is_for_iframe_with_srcdoc"] = is_for_iframe_with_srcdoc
  
      summary = self.prepare_summary(output_id=output_id, **kwargs)
      conditions_table = self.prepare_conditions_table(
          output_id=output_id, **kwargs
      )
      failures = self.prepare_failures_list()
  
      results_with_conditions = (
          self.prepare_results_with_condition_and_display(
              output_id=output_id,
              check_sections=["condition-table", "additional-output"],
              **kwargs,
          )
      )
      results_without_conditions = (
          self.prepare_results_without_condition(
              output_id=output_id,
              check_sections=["additional-output"],
              **kwargs,
          )
      )
      sections = [
          summary,
          Html.bold_hr,
          conditions_table,
          Html.bold_hr,
          results_with_conditions,
          Html.bold_hr,
          results_without_conditions,
      ]
  
      if failures:
          sections.extend([Html.bold_hr, failures])
  
      if output_id:
          anchor = form_output_anchor(output_id)
          link = linktag(
              text="Go to top",
              href=f"#{anchor}",
              style={"font-size": "14px"},
              is_for_iframe_with_srcdoc=is_for_iframe_with_srcdoc,
          )
          sections.append(f"<br>{link}")
  
      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; padding: 1rem 1rem 0 1rem;">
                  {requirejs}
                  {plotlyjs}
                  {''.join(sections)}
              </body>
              </html>
          """
      )
  
imports: import textwrap
  import typing
  import warnings
  from deepchecks.core import check_result
  from deepchecks.core import suite
  from deepchecks.core.resources import requirejs_script
  from deepchecks.core.serialization.abc import HtmlSerializer
  from deepchecks.core.serialization.check_result.html import CheckResultSection
  from deepchecks.core.serialization.check_result.html import CheckResultSerializer
  from deepchecks.core.serialization.common import Html, aggregate_conditions, create_failures_dataframe, form_output_anchor, plotlyjs_script
  from deepchecks.core.serialization.dataframe.html import DataFrameSerializer
  from deepchecks.utils.dataframes import hide_index_for_display
  from deepchecks.utils.html import linktag
label_desc: Use image node_id 2 for calling the SuiteResultSerializer obj's underlying member method code with example usage: obj.serialize(output_id, full_html, include_requirejs, include_plotlyjs, connected, is_for_iframe_with_srcdoc) and returns: textwrap, str