docstr: Set up the unit test by loading the dataset and training a model.
docstr_tok: ["Set","up","the","unit","test","by","loading","the","dataset","and","training","a","model","."]
code: def setUpClass(self):
      """
      Set up the unit test by loading the dataset and training a model.
      """
      if not _HAS_XGBOOST:
          return
      if not _HAS_SKLEARN:
          return
  
      scikit_data = load_boston()
      dtrain = xgboost.DMatrix(
          scikit_data.data,
          label=scikit_data.target,
          feature_names=scikit_data.feature_names,
      )
      xgb_model = xgboost.train({}, dtrain, 1)
  
      # Save the data and the model
      self.scikit_data = scikit_data
      self.xgb_model = xgb_model
      self.feature_names = self.scikit_data.feature_names
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/test/xgboost_tests/test_boosted_trees_regression.py
imports: import unittest
  import tempfile
  import json
  from coremltools._deps import _HAS_SKLEARN, _HAS_XGBOOST
label_desc: Use image node_id 1 for calling the BoostedTreeRegressorXGboostTest obj's underlying member method code with example usage: obj.setUpClass() without return types