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 pyts.utils import deprecated
  
  >>> @deprecated()
  ... def some_function(): pass
  
  Parameters
  ----------
  extra : string
        to be added to the deprecation messages
code: def _decorate_class(self, cls):
      msg = "Class %s is deprecated" % cls.__name__
      if self.extra:
          msg += "; %s" % self.extra
  
      # FIXME: we should probably reset __new__ for full generality
      init = cls.__init__
  
      def wrapped(*args, **kwargs):
          warnings.warn(msg, category=DeprecationWarning)
          return init(*args, **kwargs)
  
      cls.__init__ = wrapped
  
      wrapped.__name__ = "__init__"
      wrapped.deprecated_original = init
  
      return cls
  
file_path: pyts/pyts/utils/deprecation.py
imports: import warnings
  import functools
label_desc: Use image node_id 3 for calling the deprecated obj's underlying member method code with example usage: obj._decorate_class(cls) and returns: cls, init