class_docstr: test pytest.deprecated_call()
class_docstr_tok: ["test","pytest.deprecated_call","(",")"]
code: def dep(self, i: int, j: Optional[int] = None) -> int:
      if i == 0:
          warnings.warn(
              "is deprecated", DeprecationWarning, stacklevel=1
          )
      return 42
  
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 1 for calling the TestDeprecatedCall obj's underlying member method code with example usage: obj.dep(i, j) and returns: int