code: def _load_proxy(
      self,
      metrics_client: PrometheusClient = Provide[
          BentoMLContainer.metrics_client
      ],
  ) -> None:
      client_impl = (
          metrics_client
          if self._attr in dir(metrics_client)
          else metrics_client.prometheus_client
      )
      proxy = getattr(client_impl, self._attr)(
          *self._args, **self._kwargs
      )
      self._initialized = True
      return proxy
  
file_path: BentoML/src/bentoml/metrics.py
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  from simple_di import Provide
  from simple_di import inject
  from ._internal.configuration.containers import BentoMLContainer
label_desc: Use image node_id 5 for calling the _LazyMetric obj's underlying member method code with example usage: obj._load_proxy(metrics_client) and returns: proxy