I think that this function should be in the public API to be used in an example.

Also, I'd like the notion of 'task' to disappear from the codebase: it is machine learning jargon that will not talk to neuroimagers. We could for instance call this function "generate_group_sparse_gaussian_graphs", and rename "n_tasks" to "n_subjects".