code: def pytest_collection_modifyitems(config, items):
      # FeatureHasher is not compatible with PyPy
      if platform.python_implementation() == "PyPy":
          skip_marker = pytest.mark.skip(
              reason="FeatureHasher is not compatible with PyPy"
          )
          for item in items:
              if item.name.endswith(
                  ("_hash.FeatureHasher", "text.HashingVectorizer")
              ):
                  item.add_marker(skip_marker)
  
      # Skip tests which require internet if the flag is provided
      if config.getoption("--skip-network"):
          skip_network = pytest.mark.skip(
              reason="test requires internet connectivity"
          )
          for item in items:
              if "network" in item.keywords:
                  item.add_marker(skip_network)
  
      # numpy changed the str/repr formatting of numpy arrays in 1.14. We want to
      # run doctests only for numpy >= 1.14.
      skip_doctests = False
      try:
          import numpy as np
  
          if LooseVersion(np.__version__) < LooseVersion("1.14"):
              reason = "doctests are only run for numpy >= 1.14"
              skip_doctests = True
          elif _IS_32BIT:
              reason = (
                  "doctest are only run when the default numpy int is "
                  "64 bits."
              )
              skip_doctests = True
          elif sys.platform.startswith("win32"):
              reason = (
                  "doctests are not run for Windows because numpy arrays "
                  "repr is inconsistent across platforms."
              )
              skip_doctests = True
      except ImportError:
          pass
  
      if skip_doctests:
          skip_marker = pytest.mark.skip(reason=reason)
  
          for item in items:
              if isinstance(item, DoctestItem):
                  item.add_marker(skip_marker)
  
file_path: scikit-optimize/conftest.py
imports: import platform
  import sys
  from distutils.version import LooseVersion
  import os
  import pytest
  from _pytest.doctest import DoctestItem
  from skopt import _IS_32BIT
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_collection_modifyitems(config, items) without return types