def __init__(self, client):
        """Instantiate the manager.

        :Parameters:
          - `client`: a MongoClient
        """
        warnings.warn(
            "Cursor managers are deprecated.",
            DeprecationWarning,
            stacklevel=2)
        self.__client = weakref.ref(client)
Instantiate the manager.

        :Parameters:
          - `client`: a MongoClient
        
stackoverflow/venv/lib/python3.6/site-packages/pymongo/cursor_manager.py