code: def decorate_callable(
      self, func: Callable[..., T]
  ) -> Callable[..., T]:
      @wraps(func)
      def inner(*args: Any, **kwargs: Any) -> T:
          prev_levels = {}
          for name in self.names:
              logger = logging.getLogger(name)
              prev_levels[name] = logger.getEffectiveLevel()
              logger.setLevel(self.level)
          t = self._call_func(func, *args, **kwargs)
          for name in self.names:
              logging.getLogger(name).setLevel(prev_levels[name])
          return t
  
      return inner
  
imports: import logging
  import os
  import re
  from functools import wraps
  from typing import Any, Callable, Iterable, List, TypeVar
  from ax.utils.common.decorator import ClassDecorator
label_desc: Use image node_id 2 for calling the disable_loggers obj's underlying member method code with example usage: obj.decorate_callable(func) and returns: inner, t