Base58.Internal_for_testsiter_encodings f calls f ~prefix ~length ~encoded_length once for every currently-registered encoding, in unspecified order. Note that the set of encodings iterated over depends on what is registered at the time of the call (and so, transitively, on which modules happen to be linked into the calling binary).