class_docstr: Decorator for CachedAttribute
class_docstr_tok: ["Decorator","for","CachedAttribute"]
code: def __call__(self, func):
      return CachedAttribute(func, cachename=self.cachename)
  
imports: from statsmodels.tools.sm_exceptions import CacheWriteWarning
  from statsmodels.compat.pandas import cache_readonly
  import warnings
label_desc: Use image node_id 2 for calling the _cache_readonly obj's underlying member method code with example usage: obj.__call__(func) and returns: CachedAttribute