code: def silent(
      func: t.Callable[P, T]
  ) -> t.Callable[P, T]:  # pragma: no cover
      # Silent errors when tracking
      @wraps(func)
      def wrapper(*args: P.args, **kwargs: P.kwargs) -> t.Any:
          try:
              return func(*args, **kwargs)
          except Exception as err:  # pylint: disable=broad-except
              if _usage_event_debugging():
                  if get_debug_mode():
                      logger.error(
                          "Tracking Error: %s",
                          err,
                          stack_info=True,
                          stacklevel=3,
                      )
                  else:
                      logger.info("Tracking Error: %s", err)
              else:
                  logger.debug("Tracking Error: %s", err)
  
      return wrapper
  
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 4 for calling a global function with example usage: silent(func) and returns: wrapper, func