How to use linear svm as classifier for mobilenetv2

Please tell me how to write the code