code: def host(
      bentoml_home: str,
      deployment_mode: t.Literal[
          "container", "distributed", "standalone"
      ],
      clean_context: contextlib.ExitStack,
      monitoring_dir: Path,
  ):
      from bentoml.testing.server import host_bento
  
      with host_bento(
          "service:svc",
          project_path=PROJECT_DIR.__fspath__(),
          deployment_mode=deployment_mode,
          bentoml_home=bentoml_home,
          clean_context=clean_context,
      ) as _host:
          client = bentoml.client.Client.from_url(_host)
          for _ in range(10):
              client.classify(np.array([4.9, 3.0, 1.4, 0.2]))
  
file_path: BentoML/examples/monitoring/task_classification/tests/conftest.py
imports: from __future__ import annotations
  import contextlib
  import os
  import subprocess
  import sys
  import typing
  from pathlib import Path
  import numpy
  import pytest
  import bentoml
  from bentoml._internal.configuration.containers import BentoMLContainer
label_desc: Use image node_id 4 for calling a global function with example usage: host(bentoml_home, deployment_mode, clean_context, monitoring_dir) without return types