def __init__(self, database, collection="fs"):
        if not isinstance(database, Database):
            raise TypeError("database must be an instance of Database")

        if not database.write_concern.acknowledged:
            raise ConfigurationError('database must use '
                                     'acknowledged write_concern')

        self.__database = database
        self.__collection = database[collection]
        self.__files = self.__collection.files
        self.__chunks = self.__collection.chunks
Create a new instance of :class:`GridFS`.
dataset/ETHPy150Open mongodb/mongo-python-driver/gridfs/__init__.py/GridFS.__init__