code: def filter_metrics(
      samples: list[Sample],
      *filters: t.Callable[[list[Sample]], list[Sample]],
  ):
      return [
          {**sample.labels, "value": sample.value}
          for sample in compose(*filters)(samples)
      ]
  
imports: from __future__ import annotations
  import contextlib
  import logging
  import os
  import secrets
  import threading
  import typing
  from datetime import datetime
  from datetime import timezone
  from functools import lru_cache
  from functools import wraps
  from typing import TYPE_CHECKING
  import attr
  import httpx
  from simple_di import Provide
  from simple_di import inject
  from ...configuration import get_debug_mode
  from ...configuration.containers import BentoMLContainer
  from ...utils import compose
  from .schemas import CommonProperties
  from .schemas import EventMeta
  from .schemas import ServeInitEvent
  from .schemas import ServeUpdateEvent
  from .schemas import TrackingPayload
label_desc: Use image node_id 9 for calling a global function with example usage: filter_metrics(samples) and returns: unknown