I removed the backport and the code is now importing from sklearn.utils.testing instead of nose.tools