class_docstr: Helper to deprecate public access to an attribute (or method).
  
  This helper should only be used at class scope, as follows::
  
      class Foo:
          attr = _deprecate_privatize_attribute(*args, **kwargs)
  
  where *all* parameters are forwarded to `deprecated`.  This form makes
  ``attr`` a property which forwards read and write access to ``self._attr``
  (same name but with a leading underscore), with a deprecation warning.
  Note that the attribute name is derived from *the name this helper is
  assigned to*.  This helper also works for deprecating methods.
class_docstr_tok: ["Helper","to","deprecate","public","access","to","an","attribute","(","or","method",")",".","This","helper","should","only","be","used","at","class","scope",",","as","follows",":",":","class","Foo",":","attr","=","_deprecate_privatize_attribute","(","*","args",",","*","*","kwargs",")","where","*","all","*","parameters","are","forwarded","to","`","deprecated","`",".","This","form","makes","``","attr","``","a","property","which","forwards","read","and","write","access","to","``","self._attr","``","(","same","name","but","with","a","leading","underscore",")",",","with","a","deprecation","warning",".","Note","that","the","attribute","name","is","derived","from","*","the","name","this","helper","is","assigned","to","*",".","This","helper","also","works","for","deprecating","methods","."]
code: def __init__(self, *args, **kwargs):
      self.deprecator = deprecated(*args, **kwargs)
  
file_path: catboost/contrib/python/matplotlib/py3/matplotlib/_api/deprecation.py
imports: import contextlib
  import functools
  import inspect
  import math
  import warnings
label_desc: Use image node_id 1 to create a new deprecate_privatize_attribute object  with example: obj = deprecate_privatize_attribute()