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 __get__(self, instance, cls=None):
      if instance is None:
          return self
      value = self._func(instance)
      setattr(instance, self._func.__name__, value)
      return value
  
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 2 for calling the _CachedProperty obj's underlying member method code with example usage: obj.__get__(instance, cls) and returns: value, self