code: def pytest_collection_modifyitems(items):
      for item in items:
          marker_getter = getattr(item, "get_closest_marker", None)
  
          # Python 3.3 support
          if marker_getter is None:
              marker_getter = item.get_marker
  
          marker = marker_getter("xfail")
  
          # Need to query the args because conditional xfail tests still have
          # the xfail mark even if they are not expected to fail
          if marker and (not marker.args or marker.args[0]):
              item.add_marker(pytest.mark.no_cover)
  
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_collection_modifyitems(items) without return types