Great! Now make `set` have a stable order and we're done here.
Aren’t sets unsorted by definition? Or do repeated accesses without modification yield different results?
this is likely in reference to the fact that dicts have maintained insertion order since Python ~3.6 as property of the language. Mathematically there's no defined order to a set, and a dict is really just a set in disguise, but it's very convenient for determinism to "add" this invariant to the language.