def setUpClass(cls):
        """
        Set up the unit test by loading the dataset and training a model.
        """
        scikit_data = load_boston()
        scikit_model = GradientBoostingRegressor(random_state=1)
        scikit_model.fit(scikit_data["data"], scikit_data["target"])

        s = 0
        for est in scikit_model.estimators_:
            for e in est:
                s = s + e.tree_.node_count
        cls.scikit_model_node_count = s

        # Save the data and the model
        cls.scikit_data = scikit_data
        cls.scikit_model = scikit_model

        Set up the unit test by loading the dataset and training a model.
        
coremltools/test/xgboost_tests/test_boosted_trees_regression.py