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 failures section.
  
  Parameters
  ----------
  failures : Sequence[CheckFailure]
      sequence of check failures
  title : str
      accordion title
  
  Returns
  -------
  ipywidgets.VBox
docstr_tok: ["Prepare","failures","section",".","Parameters","--","--","--","--","--","failures",":","Sequence","[","CheckFailure","]","sequence","of","check","failures","title",":","str","accordion","title","Returns","--","--","--","-","ipywidgets.VBox"]
code: def prepare_failures(
      self,
      failures: t.Sequence["check_types.CheckFailure"],
      title: str,
      **kwargs,
  ) -> VBox:
      """Prepare failures section.
  
      Parameters
      ----------
      failures : Sequence[CheckFailure]
          sequence of check failures
      title : str
          accordion title
  
      Returns
      -------
      ipywidgets.VBox
      """
      if len(failures) == 0:
          children = (HTML(value="<p>No outputs to show.</p>"),)
      else:
          styler = hide_index_for_display(
              create_failures_dataframe(failures)
          )
          table = DataFrameSerializer(styler).serialize()
          children = (table,)
      accordion = normalize_widget_style(
          Accordion(
              children=children,
              _titles={"0": title},
              selected_index=None,
          )
      )
      return VBox(
          children=(
              # by putting `section_anchor` before the results accordion
              # we create a gap between them`s, failures section does not have
              # `section_anchor`` but we need to create a gap.
              # Take a look at the `prepare_results` method to understand
              HTML(value=""),
              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 4 for calling the SuiteResultSerializer obj's underlying member method code with example usage: obj.prepare_failures(failures, title) and returns: VBox