Closes the writer.
(self)
| 63 | self.num_bytes += len(serialized_example) |
| 64 | |
| 65 | def close_writer(self) -> None: |
| 66 | """Closes the writer.""" |
| 67 | if hasattr(self.writer, 'flush'): |
| 68 | self.writer.flush() |
| 69 | self.writer.close() |
| 70 | |
| 71 | |
| 72 | @dataclasses.dataclass |
no test coverage detected