code: def monitor(
      name: str | t.Any,
      monitor_class: str = ...,
      monitor_options: dict[str, t.Any] | None = ...,
  ) -> t.Generator[MonitorBase[t.Any], None, None]:
      ...
  
file_path: BentoML/grpc-client/bentoml/_internal/monitoring/api.py
imports: from __future__ import annotations
  import contextlib
  import logging
  import logging.config
  import typing
  from simple_di import Provide
  from simple_di import inject
  from ..configuration.containers import BentoMLContainer
  from ..types import LazyType
  from .base import MT
  from .base import MonitorBase
  from .base import NoOpMonitor
  from .default import DefaultMonitor
label_desc: Use image node_id 2 for calling a global function with example usage: monitor(name, monitor_class, monitor_options) without return types