Error using trainer class

I am using VS code. When I run cell 19 in Lab Training_Lab_Student.ipynb, in the training part of the course, I get error.
This is code I am running:
training_output = trainer.train()
This is error:

I appreciate any help with this