def generate_samples(dataset, n): return list(np.random.choice(dataset, size=n, replace=True))