code: def add_warning(self, key, *args, **kwargs):
          
          self._deprecations[key] = (args, kwargs)
docs: Add a warning to be triggered when the specified key is read
  
          Parameters
          ----------
          key : any hashable object
              The key