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
Check whether subclass is considered a subclass of this ABC.
product/gradle-plugin/src/main/python/pip/_vendor/contextlib2.py