code: def __dir__() -> list[str]:
      # This is for IPython and IDE autocompletion.
      metrics_client = BentoMLContainer.metrics_client.get()
      return list(
          set(dir(metrics_client.prometheus_client))
          - set(_NOT_SUPPORTED)
      )
  
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 1 for calling a global function with example usage: __dir__() and returns: list