code: def wandb_output_assertion(
      check_result, with_conditions_table=True, with_display=True
  ):
      entries = {
          f"{check_result.header}/results": instance_of(wandb.Table),
      }
  
      if with_display is True:
          for index, it in enumerate(check_result.display):
              if isinstance(it, (pd.DataFrame, Styler)):
                  entries[
                      f"{check_result.header}/item-{index}-table"
                  ] = instance_of(wandb.Table)
              elif isinstance(it, str):
                  entries[
                      f"{check_result.header}/item-{index}-html"
                  ] = instance_of(wandb.Html)
              elif isinstance(it, BaseFigure):
                  entries[
                      f"{check_result.header}/item-{index}-plot"
                  ] = instance_of(wandb.Plotly)
              elif callable(it):
                  entries[
                      f"{check_result.header}/item-{index}-figure"
                  ] = instance_of(wandb.Image)
              elif isinstance(it, DisplayMap):
                  # TODO:
                  pass
              else:
                  raise TypeError(
                      f"Unknown display item type {type(it)}"
                  )
  
      if with_conditions_table is True:
          entries[
              f"{check_result.header}/conditions table"
          ] = instance_of(wandb.Table)
  
      return all_of(instance_of(dict), has_entries(entries))
  
imports: import json
  import typing
  import pandas
  import wandb
  from hamcrest import all_of, assert_that, calling, contains_exactly, contains_string, equal_to, greater_than, has_entries, has_item, has_length, has_property, instance_of, matches_regexp, only_contains, raises, starts_with
  from IPython.display import Image
  from ipywidgets import HTML, Tab, VBox
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from deepchecks.core.check_result import DisplayMap
  from deepchecks.core.serialization.check_result.html import CheckResultSerializer
  from deepchecks.core.serialization.check_result.html import DisplayItemsHandler
  from deepchecks.core.serialization.check_result.ipython import CheckResultSerializer
  from deepchecks.core.serialization.check_result.ipython import DisplayItemsHandler
  from deepchecks.core.serialization.check_result.json import CheckResultSerializer
  from deepchecks.core.serialization.check_result.json import DisplayItemsHandler
  from deepchecks.core.serialization.check_result.junit import CheckResultSerializer
  from deepchecks.core.serialization.check_result.wandb import CheckResultSerializer
  from deepchecks.core.serialization.check_result.widget import CheckResultSerializer
  from deepchecks.core.serialization.check_result.widget import DisplayItemsHandler
  from deepchecks.core.serialization.common import plotlyjs_script
  from deepchecks.utils.strings import get_random_string
  from tests.common import DummyCheck, create_check_result, create_check_result_display, instance_of_ipython_formatter
label_desc: Use image node_id 35 for calling a global function with example usage: wandb_output_assertion(check_result, with_conditions_table, with_display) and returns: all_of