code: def pytest_runtest_setup(item: Item) -> None:
      config = item.config
      if "requires_gpus" in item.keywords and not config.getoption(
          _RUN_GPU_TESTS_MARKER
      ):
          item.add_marker(
              pytest.mark.skip(
                  reason=f"need {_RUN_GPU_TESTS_MARKER} option to run gpus related tests."
              )
          )
      # We don't run gRPC tests on Windows
      if "requires_grpc" in item.keywords and not config.getoption(
          _RUN_GRPC_TESTS_MARKER
      ):
          item.add_marker(
              pytest.mark.skip(
                  reason=f"need {_RUN_GRPC_TESTS_MARKER} option to run grpc related tests."
              )
          )
  
imports: from __future__ import annotations
  import contextlib
  import os
  import tempfile
  import typing
  from typing import TYPE_CHECKING
  import psutil
  import pytest
  from pytest import MonkeyPatch
  import bentoml
  from bentoml._internal.configuration import BENTOML_VERSION
  from bentoml._internal.configuration import clean_bentoml_version
  from bentoml._internal.configuration.containers import BentoMLContainer
  from bentoml._internal.models import ModelContext
  from bentoml._internal.utils import LazyLoader
  from bentoml._internal.utils import validate_or_create_dir
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_runtest_setup(item) without return types