code: def host(
      deployment_mode: t.Literal[
          "container", "distributed", "standalone"
      ],
      clean_context: ExitStack,
      enable_grpc: bool,
  ) -> t.Generator[str, None, None]:
      if enable_grpc and psutil.WINDOWS:
          pytest.skip("gRPC is not supported on Windows.")
  
      with host_bento(
          "service:svc",
          deployment_mode=deployment_mode,
          project_path=PROJECT_DIR,
          bentoml_home=BentoMLContainer.bentoml_home.get(),
          clean_context=clean_context,
          use_grpc=enable_grpc,
      ) as _host:
          yield _host
  
file_path: BentoML/examples/flax/MNIST/tests/conftest.py
imports: from __future__ import annotations
  import contextlib
  import os
  import subprocess
  import sys
  import typing
  from typing import TYPE_CHECKING
  import psutil
  import pytest
  import bentoml
  from bentoml._internal.configuration.containers import BentoMLContainer
  from bentoml.testing.server import host_bento
label_desc: Use image node_id 5 for calling a global function with example usage: host(deployment_mode, clean_context, enable_grpc) without return types