code: def __init__(
      self,
      logfile,
      prefix,
      suite_name="pytest",
      logging="no",
      report_duration="total",
      family="xunit1",
      log_passing_tests=True,
  ):
      logfile = os.path.expanduser(os.path.expandvars(logfile))
      self.logfile = os.path.normpath(os.path.abspath(logfile))
      self.prefix = prefix
      self.suite_name = suite_name
      self.logging = logging
      self.log_passing_tests = log_passing_tests
      self.report_duration = report_duration
      self.family = family
      self.stats = dict.fromkeys(
          ["error", "passed", "failure", "skipped"], 0
      )
      self.node_reporters = {}  # nodeid -> _NodeReporter
      self.node_reporters_ordered = []
      self.global_properties = []
  
      # List of reports that failed on call but teardown is pending.
      self.open_reports = []
      self.cnt_double_fail_tests = 0
  
      # Replaces convenience family with real family
      if self.family == "legacy":
          self.family = "xunit1"
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import os
  import platform
  import re
  import sys
  import time
  from datetime import datetime
  import py
  import six
  import pytest
  from _pytest import nodes
  from _pytest.config import filename_arg
label_desc: Use image node_id 1 to create a new LogXML object from inherited base classes: object with example: obj = LogXML(logfile, prefix, suite_name, logging, report_duration, family, log_passing_tests)