The sample complexity of multi-distribution learning