class_docstr: Helper for @contextmanager decorator.
class_docstr_tok: ["Helper","for","@","contextmanager","decorator","."]
code: def __init__(self, func, args, kwds):
      self.gen = func(*args, **kwds)
      self.func, self.args, self.kwds = func, args, kwds
      # Issue 19330: ensure context manager instances have good docstrings
      doc = getattr(func, "__doc__", None)
      if doc is None:
          doc = type(self).__doc__
      self.__doc__ = doc
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 to create a new _GeneratorContextManager object from inherited base classes: ContextDecorator with example: obj = _GeneratorContextManager(func, args, kwds)