In your last code, you mentioned about catboost but in code the estimator is xgboost. Not sure if its typo
Applying the K-Fold Cross Validation for CatBoost
from sklearn.model_selection import cross_val_score
accuracies = cross_val_score(estimator = xgboost, X = X_train, y = y_train, cv = 10)