Are you perhaps following an Udemy course by Jose Portilla? This is a custom python module written by Portilla with help from the scikit-learn documentation that plots the support vector margins.