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","."]
code: def __call__(self, func):
      @wraps(func)
      def inner(*args, **kwds):
          with self._recreate_cm():
              return func(*args, **kwds)
  
      return inner
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 3 for calling the ContextDecorator obj's underlying member method code with example usage: obj.__call__(func) and returns: inner, func