code: def aggregate_conditions(
      check_results: t.Union[
          "check_types.CheckResult",
          t.Sequence["check_types.CheckResult"],
      ],
      max_info_len: int = 3000,
      include_icon: bool = True,
      include_check_name: bool = False,
      output_id: t.Optional[str] = None,
      is_for_iframe_with_srcdoc: bool = False,
  ) -> pd.DataFrame:
      """Return the conditions table as DataFrame.
  
      Parameters
      ----------
      check_results : Union['CheckResult', Sequence['CheckResult']]
          check results to show conditions of.
      max_info_len : int
          max length of the additional info.
      include_icon : bool , default: True
          if to show the html condition result icon or the enum
      include_check_name : bool, default False
          whether to include check name into dataframe or not
      output_id : str
          unique identifier of the output, it will be used to
          form a link (html '<a></a>' tag) to the check result
          full 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
  
      Returns
      -------
      pd.Dataframe:
          the condition table.
      """
      # NOTE: if you modified this function also modify 'sort_check_results'
      check_results = (
          [check_results]
          if isinstance(check_results, check_types.CheckResult)
          else check_results
      )
  
      data = []
  
      for check_result in check_results:
          for cond_result in check_result.conditions_results:
              priority = cond_result.priority
              icon = (
                  cond_result.get_icon()
                  if include_icon
                  else cond_result.category.value
              )
              check_header = check_result.get_header()
  
              # If there is no display we won't generate a section to link to
              if output_id and check_result.display:
                  link = linktag(
                      text=check_header,
                      href=f"#{check_result.get_check_id(output_id)}",
                      is_for_iframe_with_srcdoc=is_for_iframe_with_srcdoc,
                  )
              else:
                  link = check_header
                  # if it has no display show on bottom for the category (lower priority)
                  priority += 0.1
  
              data.append(
                  [
                      icon,
                      link,
                      cond_result.name,
                      cond_result.details,
                      priority,
                  ]
              )
  
      df = pd.DataFrame(
          data=data,
          columns=[
              "Status",
              "Check",
              "Condition",
              "More Info",
              "$priority",
          ],
      )
  
      df.sort_values(by=["$priority"], inplace=True)
      df.drop("$priority", axis=1, inplace=True)
  
      if include_check_name is False:
          df.drop("Check", axis=1, inplace=True)
  
      df["More Info"] = df["More Info"].map(
          lambda x: truncate_string(x, max_info_len)
      )
      return hide_index_for_display(df)
  
imports: import io
  import json
  import textwrap
  import typing
  from contextlib import contextmanager
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import plotly.io._html
  from ipywidgets import DOMWidget
  from jsonpickle.pickler import Pickler
  from pandas.io.formats.style import Styler
  from plotly.io._utils import plotly_cdn_url
  from plotly.offline.offline import get_plotlyjs
  from deepchecks.core import check_result
  from deepchecks.core import errors
  from deepchecks.utils.dataframes import hide_index_for_display, un_numpy
  from deepchecks.utils.html import linktag
  from deepchecks.utils.strings import truncate_string
label_desc: Use image node_id 5 for calling a global function with example usage: aggregate_conditions(check_results, max_info_len, include_icon, include_check_name, output_id, is_for_iframe_with_srcdoc) and returns: hide_index_for_display