code: def cache_return(func):
      
  
      _cache = []
  
      def wrap():
          if not _cache:
              _cache.append(func())
          return _cache[0]
      return wrap
docs: Cache the return value of a function without arguments