code: def test_junit_serialization():
      suite_result = create_suite_result(
          include_results_without_conditions=False,
          include_results_without_display=False,
          include_results_without_conditions_and_display=False,
      )
      output = JunitSerializer(suite_result).serialize()
  
      import xml.etree.ElementTree as ET
  
      formatted_response = ET.fromstring(output)
  
      assert_that(formatted_response.tag, "testsuites")
      assert_that(
          list(formatted_response.attrib.keys()),
          ["errors", "failures", "name", "tests", "time"],
      )
  
      for test_suite in list(formatted_response):
          check_junit_test_case(test_suite)
  
      for test_case in list(list(formatted_response)[0]):
          check_junit_test_case(test_case)
  
imports: import json
  import typing
  from bs4 import BeautifulSoup
  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, Accordion, Tab, VBox
  from plotly.basedatatypes import BaseFigure
  from wandb.sdk.data_types.base_types.wb_value import WBValue
  from deepchecks.core.check_result import CheckFailure, CheckResult
  from deepchecks.core.serialization.common import form_output_anchor, plotlyjs_script
  from deepchecks.core.serialization.suite_result.html import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.ipython import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.json import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.junit import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.wandb import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.widget import SuiteResultSerializer
  from deepchecks.core.suite import SuiteResult
  from deepchecks.utils.strings import get_random_string
  from tests.common import create_suite_result, instance_of_ipython_formatter
  from tests.serialization.test_check_failure_serialization import assert_json_output
  from tests.serialization.test_check_result_serialization import assert_json_output
label_desc: Use image node_id 18 for calling a global function with example usage: test_junit_serialization() without return types