code: def ignore_pytest_unraisable_warning(f):
      unraisable = "PytestUnraisableExceptionWarning"
      if hasattr(pytest, unraisable):  # Python >= 3.8 and pytest >= 6
          dec = pytest.mark.filterwarnings(
              f"ignore::pytest.{unraisable}"
          )
          return dec(f)
      else:
          return f
  
imports: import sys
  import pytest
  import env
  import pybind11_cross_module_tests
  import pybind11_tests
  from pybind11_tests import exceptions
label_desc: Use image node_id 8 for calling a global function with example usage: ignore_pytest_unraisable_warning(f) and returns: dec, f