Adapted from https://github.com/oittaa/uuid6-python/blob/main/src/uuid6/__init__.py#L95 Bundled in to avoid install issues with uuid6 package
UUID version 6 is a field-compatible version of UUIDv1, reordered for improved DB locality. It is expected that UUIDv6 will primarily be used in contexts where there are existing v1 UUIDs. Systems that do not involve legacy UUIDv1 SHOULD consider using UUIDv7 instead.
If 'node' is not given, a random 48-bit number is chosen.
If 'clock_seq' is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.
Wrap serde old serde implementations in a class with loads_typed and dumps_typed for backwards compatibility.
Sort key for the writes of one super-step.
Live execution applies a super-step's tasks in this order, so a saver
that replays stored writes, as get_delta_channel_history does, must
sort them by it too, or an order-sensitive reducer rebuilds a different
value than the run produced. task_path is the string passed to
put_writes.
Get checkpoint ID.
Get checkpoint metadata in a backwards-compatible manner.
Get checkpoint metadata in a backwards-compatible manner.
Create a checkpoint for the given channels.