def has_c():
    try:
        from pymongo import _cmessage
        return True
    except ImportError:
        return False
Is the C extension installed?
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/__init__.py/has_c