<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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()