code: def pytest_runtest_protocol(item):
      with catch_warnings_for_item(
          config=item.config,
          ihook=item.ihook,
          when="runtest",
          item=item,
      ):
          yield
  
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 6 for calling a global function with example usage: pytest_runtest_protocol(item) without return types