class_docstr: Use as a decorator for loading class attribute, but caches the value.
class_docstr_tok: ["Use","as","a","decorator","for","loading","class","attribute",",","but","caches","the","value","."]
code: def __init__(self, func):
      self._func = func
      update_wrapper(self, self._func)
  
file_path: mxnet/python/mxnet/gluon/probability/distributions/utils.py
imports: from functools import update_wrapper
  from numbers import Number
  import numpy
  from ....None import np, npx
label_desc: Use image node_id 1 to create a new _CachedProperty object from inherited base classes: object with example: obj = _CachedProperty(func)