code: def pytest_configure(config):
      xmlpath = config.option.xmlpath
      # prevent opening xmllog on slave nodes (xdist)
      if xmlpath and not hasattr(config, "slaveinput"):
          config._xml = LogXML(
              xmlpath,
              config.option.junitprefix,
              config.getini("junit_suite_name"),
              config.getini("junit_logging"),
              config.getini("junit_duration_report"),
              config.getini("junit_family"),
              config.getini("junit_log_passing_tests"),
          )
          config.pluginmanager.register(config._xml)
  
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 9 for calling a global function with example usage: pytest_configure(config) without return types