code: def pytest_addoption(parser):
      group = parser.getgroup("terminal reporting")
      group.addoption(
          "--junitxml",
          "--junit-xml",
          action="store",
          dest="xmlpath",
          metavar="path",
          type=functools.partial(filename_arg, optname="--junitxml"),
          default=None,
          help="create junit-xml style report file at given path.",
      )
      group.addoption(
          "--junitprefix",
          "--junit-prefix",
          action="store",
          metavar="str",
          default=None,
          help="prepend prefix to classnames in junit-xml output",
      )
      parser.addini(
          "junit_suite_name",
          "Test suite name for JUnit report",
          default="pytest",
      )
      parser.addini(
          "junit_logging",
          "Write captured log messages to JUnit report: "
          "one of no|system-out|system-err",
          default="no",
      )  # choices=['no', 'stdout', 'stderr'])
      parser.addini(
          "junit_log_passing_tests",
          "Capture log information for passing tests to JUnit report: ",
          type="bool",
          default=True,
      )
      parser.addini(
          "junit_duration_report",
          "Duration time to report: one of total|call",
          default="total",
      )  # choices=['total', 'call'])
      parser.addini(
          "junit_family",
          "Emit XML for schema: one of legacy|xunit1|xunit2",
          default="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 8 for calling a global function with example usage: pytest_addoption(parser) without return types