SMOTE

I am doing KNN model and I have very imbalanced data like below. Now I want to over sample Buy and Sell Label to be the same amount of Don’t Move in my KNN model. I want to use SMOTE Synthetic sampling. I can share my code once a person is able to do it.
Buy    515      Don’t move  1473 Sell    466