Scikit-Learn contains the Blank 1 library, which contains built-in classes/methods for various decision tree algorithms code example
Example: scikit learn decision tree
from sklearn import tree
X = [[0, 0], [1, 1]]
Y = [0, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(X, Y)