scikit learn Cross validation score check code example
Example 1: how to import cross_validation from sklearn
from sklearn.model_selection import cross_validate
Example 2: cross_val_score
from sklearn import datasets, linear_model
from sklearn.model_selection import cross_val_score
diabetes = datasets.load_diabetes()
X = diabetes.data[:150]
y = diabetes.target[:150]
lasso = linear_model.Lasso()
print(cross_val_score(lasso, X, y, cv=3))