Obtaining y/labels from DataLoaders in fastai2

In fastai1 there was ImageDataBunch.train_ds.x and ImageDataBunch.train_ds.y. Instead of (Image)DataBunch I use DataLoaders now, which also has a train_ds attribute. But those don’t have x and y anymore.

In fastai2 how do I obtain a list of all y/labels?