def id3_version(self): return random.choices( [v for v, _ in self.VERSION_WEIGHTS], cum_weights=[w for _, w in self.VERSION_WEIGHTS])[0]