A block is a permutation of all unique elements in branch. Then, we sample n blocks. This is better than repeating one sample a certain number of times because if compute resources steadily increase, the first sample will always perform worse than the second, so the order within the blocks must be random.

branches_upsample(branch, n = 20)