class_docstr: Serializes any SuiteResult instance into Junit format.
  
  Parameters
  ----------
  value : SuiteResult
      SuiteResult instance that needed to be serialized.
class_docstr_tok: ["Serializes","any","SuiteResult","instance","into","Junit","format",".","Parameters","--","--","--","--","--","value",":","SuiteResult","SuiteResult","instance","that","needed","to","be","serialized","."]
docstr: Create the root node of the XML output.
  
  Parameters
  ----------
  failure_tag : str
      Set the tests that fail as either skipped or failure, this allows CI/CD systems to ignore failed tests if
      development does not want them to stop the build.
  results : dict
      Organized and serialized test suites to be added to the root of the xml tree.
  
  Returns
  -------
  ET.Element
docstr_tok: ["Create","the","root","node","of","the","XML","output",".","Parameters","--","--","--","--","--","failure_tag",":","str","Set","the","tests","that","fail","as","either","skipped","or","failure",",","this","allows","CI\/CD","systems","to","ignore","failed","tests","if","development","does","not","want","them","to","stop","the","build",".","results",":","dict","Organized","and","serialized","test","suites","to","be","added","to","the","root","of","the","xml","tree",".","Returns","--","--","--","-","ET.Element"]
code: def _create_junit_test_suites_wrapper(
      self, failure_tag, results
  ) -> ET.Element:
      """Create the root node of the XML output.
  
      Parameters
      ----------
      failure_tag : str
          Set the tests that fail as either skipped or failure, this allows CI/CD systems to ignore failed tests if
          development does not want them to stop the build.
      results : dict
          Organized and serialized test suites to be added to the root of the xml tree.
  
      Returns
      -------
      ET.Element
      """
      count = sum([len(value) for key, value in results.items()])
  
      attributes = {
          "name": self.value.name,
          "errors": "0",
          "tests": str(count),
      }
  
      if failure_tag == f"{FAILURE}":
          attributes.update({"failures": str(len(self.value.failures))})
      elif failure_tag == f"{SKIPPED}":
          attributes.update({"skipped": str(len(self.value.failures))})
          attributes.update({"failures": "0"})
  
      root = ET.Element("testsuites", attrib=attributes)
  
      return root
  
file_path: deepchecks/deepchecks/core/serialization/suite_result/junit.py
imports: import re
  import sys
  import xml.etree.ElementTree
  from datetime import datetime
  from typing import Dict, List, Union
  from six import u
  from deepchecks.core import check_result
  from deepchecks.core import suite
  from deepchecks.core.serialization.abc import JunitSerializer
  from deepchecks.core.serialization.check_failure.junit import FAILURE, SKIPPED, CheckFailureSerializer
  from deepchecks.core.serialization.check_result.junit import CheckResultSerializer
label_desc: Use image node_id 4 for calling the SuiteResultSerializer obj's underlying member method code with example usage: obj._create_junit_test_suites_wrapper(failure_tag, results) and returns: root