def generate(n_samples, noise):