code: def test_nested_display_map_serialization_to_widget():
      display_items = create_check_result_display()
      inner_displaymap = DisplayMap(a=display_items)
      outer_displaymap = DisplayMap(
          a=display_items, b=[inner_displaymap]
      )
  
      output = WidgetDisplayItemsHandler.handle_display(
          display=[outer_displaymap],
          include_header=False,
          include_trailing_link=False,
      )
      assert_that(
          output,
          contains_exactly(
              serialized_to_widget_displaymap(
                  displaymap=outer_displaymap,
                  tabs=[
                      has_length(len(display_items)),  # tab 'a'
                      contains_exactly(
                          serialized_to_widget_displaymap(  # tab 'b'
                              displaymap=inner_displaymap,
                              display_items=display_items,
                          )
                      ),
                  ],
              )
          ),
      )
  
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 43 for calling a global function with example usage: test_nested_display_map_serialization_to_widget() without return types