The session's save file: JSON text, or a Uint8Array for "cbor". Its
settings are the Pipeline's description (toJSON()), its state
everything the session holds: the operators' and stream nodes' state,
the events that wait in a join or a window, the watermarks, and the
outputs result() has not returned. loads gives back a live session
that continues where this one stopped. Python's session.dumps.
Optionalformat: "json" | "cbor"Writes dumps() to path (Node): CBOR for a .cbor path, else JSON.
Frees the session's engine and its operator copies now (else the garbage collector, or the Pipeline's dispose(), does). Idempotent.