code: def pytest_collection_modifyitems(config, items):
      if config.getoption("--test-build-only"):
          skip_hardware_tests = pytest.mark.skip(
              reason="--test-build-only was passed"
          )
          for item in items:
              if "requires_hardware" in item.keywords:
                  item.add_marker(skip_hardware_tests)
  
file_path: tvm/python/tvm/micro/testing/pytest_plugin.py
imports: import pathlib
  import os
  import datetime
  import pytest
  from tvm.contrib.utils import tempdir
  from .utils import get_supported_platforms, get_supported_boards
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_collection_modifyitems(config, items) without return types