code: def pytest_collection_modifyitems(config, items):
      if config.getoption("--runslow"):
          # --runslow given in cli: do not skip slow tests
          return
      skip_slow = pytest.mark.skip(
          reason="need --runslow option to run"
      )
      for item in items:
          if "slow" in item.keywords:
              item.add_marker(skip_slow)
  
          if "ws" in item.fixturenames:
              item.add_marker(pytest.mark.workerstate)
  
imports: from __future__ import annotations
  import pytest
  from distributed.utils_test import *
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_collection_modifyitems(config, items) without return types