code: def test_typechecking(self) -> None:
      from _pytest.recwarn import WarningsChecker
  
      with pytest.raises(TypeError):
          WarningsChecker(5, _ispytest=True)  # type: ignore[arg-type]
      with pytest.raises(TypeError):
          WarningsChecker(("hi", RuntimeWarning), _ispytest=True)  # type: ignore[arg-type]
      with pytest.raises(TypeError):
          WarningsChecker(
              [DeprecationWarning, RuntimeWarning], _ispytest=True
          )
  
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 TestWarningsRecorderChecker obj's underlying member method code with example usage: obj.test_typechecking() without return types