I am trying to extract features from an arbitrary intermediate layer with VGG19 on kaggle with the following code and I\'m getting errors. Don\'t know what the problem is