'Instantiate the manager.
:Parameters:
- `client`: a MongoClient'

def __init__(self, client):

    warnings.warn('Cursor    managers    are    deprecated.', DeprecationWarning, stacklevel=2)
    self.__client = weakref.ref(client)
