code: def pytest_addoption(parser):
      group = parser.getgroup("pytest-warnings")
      group.addoption(
          "-W",
          "--pythonwarnings",
          action="append",
          help="set which warnings to report, see -W option of python itself.",
      )
      parser.addini(
          "filterwarnings",
          type="linelist",
          help="Each line specifies a pattern for "
          "warnings.filterwarnings. "
          "Processed after -W and --pythonwarnings.",
      )
  
file_path: catboost/contrib/python/pytest/py2/_pytest/warnings.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest import compat
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_addoption(parser) without return types