class_docstr: test pytest.deprecated_call()
class_docstr_tok: ["test","pytest.deprecated_call","(",")"]
code: def test_deprecated_call_raises(self) -> None:
      with pytest.raises(
          pytest.fail.Exception, match="No warnings of type"
      ):
          pytest.deprecated_call(self.dep, 3, 5)
  
imports: import warnings
  from typing import List
  from typing import Optional
  from typing import Type
  import pytest
  from _pytest.pytester import Pytester
  from _pytest.recwarn import WarningsRecorder
label_desc: Use image node_id 3 for calling the TestDeprecatedCall obj's underlying member method code with example usage: obj.test_deprecated_call_raises() without return types