class_docstr: An abstract base class for context managers.
class_docstr_tok: ["An","abstract","base","class","for","context","managers","."]
docstr: Check whether subclass is considered a subclass of this ABC.
docstr_tok: ["Check","whether","subclass","is","considered","a","subclass","of","this","ABC","."]
code: def __subclasshook__(cls, C):
      """Check whether subclass is considered a subclass of this ABC."""
      if cls is AbstractContextManager:
          return _check_methods(C, "__enter__", "__exit__")
      return NotImplemented
  
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 AbstractContextManager obj's underlying member method code with example usage: obj.__subclasshook__(cls, C) and returns: NotImplemented, _check_methods