code: def test_recwarn_stacklevel(recwarn: WarningsRecorder) -> None:
      warnings.warn("hello")
      warn = recwarn.pop()
      assert warn.filename == __file__
  
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 a global function with example usage: test_recwarn_stacklevel(recwarn) without return types