code: def close_cache_shelves_after(f):
      
      @functools.wraps(f)
      def wrapped(*args, **kwargs):
          f(*args, **kwargs)
          close_cache_shelves()
      return wrapped
docs: Decorator that ensures cache shelves are closed after the call.