code: def pytest_runtest_makereport(item, call):
      """Post-processing test reports to exclude those known to be failing."""
      tr = orig_pytest_runtest_makereport(item, call)
  
      if (
          "skip_unsupported" in item.keywords
          and item.config.option.skip_ops
      ):
          if call.excinfo is not None:
              # Exclude failing test cases for unsupported operations/observables
              # and those using not implemented features
              if (
                  call.excinfo.type == qml.DeviceError
                  and "supported" in str(call.excinfo.value)
                  or call.excinfo.type == NotImplementedError
              ):
                  tr.wasxfail = "reason:" + str(call.excinfo.value)
                  tr.outcome = "skipped"
  
      return tr
  
file_path: pennylane/pennylane/devices/tests/conftest.py
imports: import argparse
  import os
  import numpy
  import pytest
  from _pytest.runner import pytest_runtest_makereport
  import pennylane
label_desc: Use image node_id 9 for calling a global function with example usage: pytest_runtest_makereport(item, call) and returns: tr