How can I extract labels from the raw .bdf file (DEAP dataset)?

I don’t have access to the DEAP dataset, but generally, annotations of BDF files should be stored in raw.annotations when reading the files via MNE-Python.