create_checkpoint(
checkpoint: Checkpoint,
channels: Mapping[str, BaseChannel] | NoneBuild a new Checkpoint from the previous one and live channel state.
For each name in channels_to_snapshot, a _DeltaSnapshot(value) blob
is written into channel_values[k]. Other delta channels are omitted
from channel_values โ the ancestor walk reconstructs their state
from checkpoint_writes. Callers compute the set via
delta_channels_to_snapshot(channels, counters); defaults to empty
(no snapshots) when not provided.
stored_versions are the channel versions of the last checkpoint the
saver stored. A snapshotted channel whose version has not moved since
then is bumped.