code: def pytest_addoption(parser):
      parser.addini(
          "doctest_optionflags",
          "option flags for doctests",
          type="args",
          default=["ELLIPSIS"],
      )
      parser.addini(
          "doctest_encoding",
          "encoding used for doctest files",
          default="utf-8",
      )
      group = parser.getgroup("collect")
      group.addoption(
          "--doctest-modules",
          action="store_true",
          default=False,
          help="run doctests in all .py modules",
          dest="doctestmodules",
      )
      group.addoption(
          "--doctest-report",
          type=str.lower,
          default="udiff",
          help="choose another output format for diffs on doctest failure",
          choices=DOCTEST_REPORT_CHOICES,
          dest="doctestreport",
      )
      group.addoption(
          "--doctest-glob",
          action="append",
          default=[],
          metavar="pat",
          help="doctests file matching pattern, default: test*.txt",
          dest="doctestglob",
      )
      group.addoption(
          "--doctest-ignore-import-errors",
          action="store_true",
          default=False,
          help="ignore doctest ImportErrors",
          dest="doctest_ignore_import_errors",
      )
      group.addoption(
          "--doctest-continue-on-failure",
          action="store_true",
          default=False,
          help="for a given doctest, continue to run after the first failure",
          dest="doctest_continue_on_failure",
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import platform
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import TerminalRepr
  from _pytest.compat import safe_getattr
  from _pytest.fixtures import FixtureRequest
  from _pytest.outcomes import Skipped
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_addoption(parser) without return types