code: def deprecate(cls, fn):
          
          def inner(*args, **kwargs):
              if cls._disable_stubs:
                  raise AssertionError('Stubs supporting old API disabled')
              elif cls._disable_stubs is None:
                  pass
              elif cls._disable_stubs is False:
                  get_logger(name=args[0].__class__.__name__).log(
                      WARNING, 'Use method %r via param namespace ' % fn.__name__)
              return fn(*args, **kwargs)
  
          inner.__doc__= "Inspect .param.%s method for the full docstring"  % fn.__name__
          return inner
docs: Decorator to issue warnings for API moving onto the param
          namespace and to add a docstring directing people to the
          appropriate method.