code: def check_ispytest(ispytest: bool) -> None:
      if not ispytest:
          warn(PRIVATE, stacklevel=3)
  
imports: from warnings import warn
  from _pytest.warning_types import PytestDeprecationWarning
  from _pytest.warning_types import PytestRemovedIn8Warning
  from _pytest.warning_types import UnformattedWarning
label_desc: Use image node_id 1 for calling a global function with example usage: check_ispytest(ispytest) without return types