code: def disable_logging(func):
      return func
      
      handler = logging.NullHandler()
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          logger = logging.getLogger()
          logger.addHandler(handler)
          resp = func(*args, **kwargs)
          logger.removeHandler(handler)
          return resp
      return wrapper
docs: Temporary disable logging.