“predict (…)” is a funtion call in Keras which “generates output predictions for the input samples” (https://keras.io/models/sequential/) However, in this case, Line 6 modifies VGG to return ‘the extracted feature of a given image’ rather than ‘the predicted class for a given image’. This is the standard mechanism provided by Keras.