class_docstr: Decorator to mark a function or class as deprecated.
  
  Issue a warning when the function is called/the class is instantiated and
  adds a warning to the docstring.
  
  The optional extra argument will be appended to the deprecation message
  and the docstring. Note: to use this with the default value for extra, put
  in an empty of parentheses:
  
  >>> from sklearn.utils import deprecated
  >>> deprecated()
  <sklearn.utils.deprecation.deprecated object at ...>
  
  >>> @deprecated()
  ... def some_function(): pass
  
  Parameters
  ----------
  extra : str, default=''
        To be added to the deprecation messages.
code: def _decorate_property(self, prop):
      msg = self.extra
  
      @property
      @functools.wraps(prop)
      def wrapped(*args, **kwargs):
          warnings.warn(msg, category=FutureWarning)
          return prop.fget(*args, **kwargs)
  
      return wrapped
  
file_path: scikit-learn/sklearn/utils/deprecation.py
imports: import functools
  import warnings
label_desc: Use image node_id 5 for calling the deprecated obj's underlying member method code with example usage: obj._decorate_property(prop) and returns: wrapped, prop