code: def test_yield_fixture_is_deprecated() -> None:
      with pytest.warns(
          DeprecationWarning, match=r"yield_fixture is deprecated"
      ):
  
          @pytest.yield_fixture
          def fix():
              assert False
  
file_path: pytest/testing/deprecated_test.py
imports: import pytest
  from _pytest import deprecated
  from _pytest.pytester import Pytester
  from pytest import PytestDeprecationWarning
label_desc: Use image node_id 4 for calling a global function with example usage: test_yield_fixture_is_deprecated() without return types