class_docstr: A base class or mixin that enables context managers to work as decorators.
class_docstr_tok: ["A","base","class","or","mixin","that","enables","context","managers","to","work","as","decorators","."]
docstr: Returns the context manager used to actually wrap the call to the
  decorated function.
  
  The default implementation just returns *self*.
  
  Overriding this method allows otherwise one-shot context managers
  like _GeneratorContextManager to support use as decorators via
  implicit recreation.
  
  DEPRECATED: refresh_cm was never added to the standard library's
              ContextDecorator API
docstr_tok: ["Returns","the","context","manager","used","to","actually","wrap","the","call","to","the","decorated","function",".","The","default","implementation","just","returns","*","self","*",".","Overriding","this","method","allows","otherwise","one-shot","context","managers","like","_GeneratorContextManager","to","support","use","as","decorators","via","implicit","recreation",".","DEPRECATED",":","refresh_cm","was","never","added","to","the","standard","library's","ContextDecorator","API"]
code: def refresh_cm(self):
      """Returns the context manager used to actually wrap the call to the
      decorated function.
  
      The default implementation just returns *self*.
  
      Overriding this method allows otherwise one-shot context managers
      like _GeneratorContextManager to support use as decorators via
      implicit recreation.
  
      DEPRECATED: refresh_cm was never added to the standard library's
                  ContextDecorator API
      """
      warnings.warn(
          "refresh_cm was never added to the standard library",
          DeprecationWarning,
      )
      return self._recreate_cm()
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 for calling the ContextDecorator obj's underlying member method code with example usage: obj.refresh_cm() and returns: self