code: def setUpClass(cls):
      sf = tc.SFrame(
          {
              "cat[1]": ["1", "1", "2", "2", "2"] * 20,
              "cat[2]": ["1", "3", "3", "1", "1"] * 20,
              "target": [random.random() for i in range(100)],
          }
      )
      cls.train, cls.test = sf.random_split(0.5, seed=5)
      cls.model = tc.boosted_trees_regression
      cls.metrics = ["rmse", "max_error"]
      return cls
  
file_path: turicreate/src/python/turicreate/test/test_boosted_trees_checkpoint.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  import random
  import tempfile
  import os
  import shutil
label_desc: Use image node_id 1 for calling the BoostedTreesRegressionCheckpointTest obj's underlying member method code with example usage: obj.setUpClass(cls) and returns: cls