code: def ensure_metrics_are_registered(_: str) -> None:
      histograms = [
          m.name
          for m in bentoml.metrics.text_string_to_metric_families()
          if m.type == "histogram"
      ]
      assert "inference_latency" in histograms
  
imports: from __future__ import annotations
  import time
  import typing
  from typing import TYPE_CHECKING
  from context_server_interceptor import AsyncContextInterceptor
  from pydantic import BaseModel
  import bentoml
  from bentoml._internal.utils import LazyLoader
  from bentoml._internal.utils.metrics import exponential_buckets
  from bentoml.io import JSON
  from bentoml.io import File
  from bentoml.io import Image
  from bentoml.io import Multipart
  from bentoml.io import NumpyNdarray
  from bentoml.io import PandasDataFrame
  from bentoml.io import PandasSeries
  from bentoml.io import Text
label_desc: Use image node_id 2 for calling a global function with example usage: ensure_metrics_are_registered(_) without return types