class_docstr: Serializes any SuiteResult instance into ipywidgets.Widget instance.
  
  Parameters
  ----------
  value : SuiteResult
      SuiteResult instance that needed to be serialized.
class_docstr_tok: ["Serializes","any","SuiteResult","instance","into","ipywidgets.Widget","instance",".","Parameters","--","--","--","--","--","value",":","SuiteResult","SuiteResult","instance","that","needed","to","be","serialized","."]
docstr: Prepare results section.
  
  Parameters
  ----------
  results : Sequence[CheckResult]
      sequence of check results
  title : str
      accordion title
  output_id : Optional[str], default None
      unique output identifier that will be used to form anchor links
  summary_creation_method : Optional[Callable[..., Widget]], default None
      function to create summary table
  
  Returns
  -------
  ipywidgets.VBox
docstr_tok: ["Prepare","results","section",".","Parameters","--","--","--","--","--","results",":","Sequence","[","CheckResult","]","sequence","of","check","results","title",":","str","accordion","title","output_id",":","Optional","[","str","]",",","default","None","unique","output","identifier","that","will","be","used","to","form","anchor","links","summary_creation_method",":","Optional","[","Callable","[","...",",","Widget","]","]",",","default","None","function","to","create","summary","table","Returns","--","--","--","-","ipywidgets.VBox"]
code: def prepare_results(
      self,
      results: t.Sequence["check_types.CheckResult"],
      title: str,
      output_id: t.Optional[str] = None,
      summary_creation_method: t.Optional[
          t.Callable[..., Widget]
      ] = None,
      **kwargs,
  ) -> VBox:
      """Prepare results section.
  
      Parameters
      ----------
      results : Sequence[CheckResult]
          sequence of check results
      title : str
          accordion title
      output_id : Optional[str], default None
          unique output identifier that will be used to form anchor links
      summary_creation_method : Optional[Callable[..., Widget]], default None
          function to create summary table
  
      Returns
      -------
      ipywidgets.VBox
      """
      if len(results) == 0:
          section_anchor = HTML(value="")
          accordion = normalize_widget_style(
              Accordion(
                  children=(HTML(value="<p>No outputs to show.</p>"),),
                  _titles={"0": title},
                  selected_index=None,
              )
          )
      else:
          section_id = f"{output_id}-section-{get_random_string()}"
          section_anchor = HTML(
              value=f'<span id="{form_output_anchor(section_id)}"></span>'
          )
  
          serialized_results = [
              select_serializer(it).serialize(
                  output_id=section_id, **kwargs
              )
              for it in results
              if it.display  # we do not form full-output for the check results without display
          ]
  
          if callable(summary_creation_method):
              children = (
                  summary_creation_method(
                      results=results, output_id=section_id, **kwargs
                  ),
                  HTML(value=CommonHtml.light_hr),
                  *join(
                      serialized_results,
                      HTML(value=CommonHtml.light_hr),
                  ),
              )
          else:
              children = (
                  *join(
                      serialized_results,
                      HTML(value=CommonHtml.light_hr),
                  ),
              )
  
          accordion = normalize_widget_style(
              Accordion(
                  children=(VBox(children=children),),
                  _titles={"0": title},
                  selected_index=None,
              )
          )
  
      return VBox(
          children=(
              # "go to top" link should bring the user a bit higher,
              # to the top of the accordion, enabling easier folding,
              # therefore we need to put section_anchor before the accordion
              section_anchor,
              accordion,
          )
      )
  
imports: import typing
  import warnings
  from ipywidgets import HTML, Accordion, VBox, Widget
  from deepchecks.core import check_result
  from deepchecks.core import suite
  from deepchecks.core.serialization.abc import WidgetSerializer
  from deepchecks.core.serialization.check_failure.widget import CheckFailureSerializer
  from deepchecks.core.serialization.check_result.widget import CheckResultSerializer
  from deepchecks.core.serialization.common import Html
  from deepchecks.core.serialization.common import aggregate_conditions, create_failures_dataframe, create_results_dataframe, form_output_anchor, join, normalize_widget_style
  from deepchecks.core.serialization.dataframe.widget import DataFrameSerializer
  from deepchecks.utils.dataframes import hide_index_for_display
  from deepchecks.utils.strings import get_random_string
  from .None import html
label_desc: Use image node_id 5 for calling the SuiteResultSerializer obj's underlying member method code with example usage: obj.prepare_results(results, title, output_id, summary_creation_method) and returns: VBox