def METHOD_NAME(self, model: Any) -> Any:
    # The use of Any type is due to _PackedBooster is not yet being exposed
    # to public interface as of xgboost 1.3.
    if isinstance(model, xgb.Booster):
        self._is_cv = False
    else:
        self._is_cv = True
    return model