def __init__(self, root_collection, file_id=None, file_document=None,
                 _connect=True):
        if not isinstance(root_collection, Collection):
            raise TypeError("root_collection must be an "
                            "instance of Collection")

        self.__chunks = root_collection.chunks
        self.__files = root_collection.files
        self.__file_id = file_id
        self.__buffer = EMPTY
        self.__position = 0
        self._file = file_document
        if _connect:
            self._ensure_file()
Save this HashDictionary to a text file, for easier debugging.
dataset/ETHPy150Open blynch/CloudMemeBackend/gridfs/grid_file.py/GridOut.__init__--crossover with--dataset/ETHPy150Open largelymfs/topical_word_embeddings/TWE-1/gensim/corpora/hashdictionary.py/HashDictionary.save_as_text