I’m not sure if Kaggle Kernels stay updated or if you would have to update certain packages in each run.
Could you try it out and let us know?
Alternatively, you might just get all targets using this line of code 30 manually:
targets = [s[1] for s in valdata.samples]