code: def pytest_addoption(parser: Parser) -> None:
      group = parser.getgroup("terminal reporting")
      group._addoption(
          "--pastebin",
          metavar="mode",
          action="store",
          dest="pastebin",
          default=None,
          choices=["failed", "all"],
          help="Send failed|all info to bpaste.net pastebin service",
      )
  
file_path: catboost/contrib/python/pytest/py3/_pytest/pastebin.py
imports: import tempfile
  from io import StringIO
  from typing import IO
  from typing import Union
  import pytest
  from _pytest.config import Config
  from _pytest.config import create_terminal_writer
  from _pytest.config.argparsing import Parser
  from _pytest.stash import StashKey
  from _pytest.terminal import TerminalReporter
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_addoption(parser) without return types