code: def random_product(iter1, iter2):
      
      pool1 = tuple(iter1)
      pool2 = tuple(iter2)
      ind1 = random.sample(pool1, 2)
      ind2 = random.sample(pool2, 2)
      return tuple(ind1+ind2)
docs: random sampler for equal_splits func