class_docstr: An abstract base class for context managers. Supported in contextlib from python 3.6 and up 
code: def __subclasshook__(cls, C):
      if cls is AbstractContextManager:
          if any("__enter__" in B.__dict__ for B in C.__mro__) and any(
              "__exit__" in B.__dict__ for B in C.__mro__
          ):
              return True
      return NotImplemented
  
imports: import abc
  import six
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, True