code: def pytest_collection_modifyitems(session, config, items):
      selected = []
      deselected = []
      for item in items:
          if _has_ignore_marker(item.own_markers):
              deselected.append(item)
          else:
              selected.append(item)
  
      config.hook.pytest_deselected(items=deselected)
  
      items[:] = selected
  
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_collection_modifyitems(session, config, items) without return types