code: def __getattr__(self, item: t.Any) -> t.Any:
      if item in self.__slots__:
          raise AttributeError(
              f"Attribute {item} is private to {self}."
          )
      if self._proxy is None:
          self._proxy = self._load_proxy()
      assert self._initialized and self._proxy is not None
      return getattr(self._proxy, item)
  
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 3 for calling the _LazyMetric obj's underlying member method code with example usage: obj.__getattr__(item) and returns: getattr