end_segment Method
Ends writing the current segment.
Syntax
def end_segment() -> None: ...
Remarks
on_end_segment terminates writing the current segment and flushes it to the output stream/file.
You should call on_end_segment to close a segment started with start_segment, start_interchange_header, start_functional_group_header or start_transaction_header.