code: def add(clss, func, deprecated_name):
          
  
          @Deprecator(func.__name__, deprecated_name)
          def _old_function(*args, **kwargs):
              return func(*args, **kwargs)
  
          setattr(clss, deprecated_name, _old_function)
docs: Add the deprecated version of a member function to the given class.
          Gives a deprecation warning on usage.
  
          Args:
              clss: the class where the deprecated function is to be added
              func: the actual function that is called by the deprecated version
              deprecated_name: the deprecated name of the function