code: def checkpointing_with_delete_test():
      """
      The reason is to be sure that whole cluster can ho down and we are able to restart from checkpoint.
      """
      airlines = h2o.import_file(
          path=pyunit_utils.locate(
              "smalldata/testng/airlines_train.csv"
          )
      )
      gbm = H2OGradientBoostingEstimator(ntrees=1)
      gbm.train(
          x=["Origin", "Dest"],
          y="Distance",
          training_frame=airlines,
          validation_frame=airlines,
      )
  
      path = pyunit_utils.locate("results")
  
      gbm_path = h2o.save_model(gbm, path=path, force=True)
      h2o.remove_all([airlines.frame_id])
      gbm = h2o.load_model(gbm_path)
  
      checkpointed_gbm = H2OGradientBoostingEstimator(
          ntrees=2, checkpoint=gbm
      )
      checkpointed_gbm.train(
          x=["Origin", "Dest"],
          y="Distance",
          training_frame=airlines,
          validation_frame=airlines,
      )
      assert checkpointed_gbm.checkpoint == gbm
  
      checkpointed_gbm = H2OGradientBoostingEstimator(
          ntrees=2, checkpoint=gbm.model_id
      )
      checkpointed_gbm.train(
          x=["Origin", "Dest"],
          y="Distance",
          training_frame=airlines,
          validation_frame=airlines,
      )
      assert checkpointed_gbm.checkpoint == gbm.model_id
  
imports: import os
  import sys
  import h2o
  from h2o.estimators import H2OGradientBoostingEstimator
  from tests import pyunit_utils
label_desc: Use image node_id 2 for calling a global function with example usage: checkpointing_with_delete_test() without return types