code: def __init__(self, func, cachename=None):
      self.fget = func
      self.name = func.__name__
      self.cachename = cachename or "_cache"
  
imports: from statsmodels.tools.sm_exceptions import CacheWriteWarning
  from statsmodels.compat.pandas import cache_readonly
  import warnings
label_desc: Use image node_id 1 to create a new CachedAttribute object  with example: obj = CachedAttribute(func, cachename)