def METHOD_NAME(self):
    # Write RECORD
    if self.fp is not None and self.mode == "w" and self._file_hashes:
        data = StringIO()
        writer = csv.writer(data, delimiter=",", quotechar='"', lineterminator="\n")
        writer.writerows(
            (
                (fname, algorithm + "=" + hash_, self._file_sizes[fname])
                for fname, (algorithm, hash_) in self._file_hashes.items()
            )
        )
        writer.writerow((format(self.record_path), "", ""))
        self.writestr(self.record_path, data.getvalue())
    ZipFile.METHOD_NAME(self)