def sampling(generate_data, nb_samples):
    """
    Generates nb_samples from generate_data
    :param generate_data: Function that takes takes an integer n and samples from a synthetic distribution.
                          Returns an array of n samples.
    :param nb_samples: Number of samples to generate
    :return: Samples. Shape=(nb_samples, nb_genes)
    """
    return generate_data(nb_samples)