No, it's randomly sampled instead: here it shuffles 2**n_important samples, then selects the first n_classes, which would seem to be the same as sampling without replacement.