\
        Closes the writer.

        This method MUST be called once all vectors are added.

def close(self):
        """\
        Closes the writer.

        This method MUST be called once all vectors are added.
        """
        self._mmw.fake_headers(self._num_docs+1, self._num_terms, self._num_nnz)
        self._mmw.close()