code: def test_boost_from_prediction(self):
      # Re-construct dtrain here to avoid modification
      margined, _ = tm.load_agaricus(__file__)
      bst = xgb.train({"tree_method": "hist"}, margined, 1)
      predt_0 = bst.predict(margined, output_margin=True)
      margined.set_base_margin(predt_0)
      bst = xgb.train({"tree_method": "hist"}, margined, 1)
      predt_1 = bst.predict(margined)
  
      assert np.any(np.abs(predt_1 - predt_0) > 1e-6)
      dtrain, _ = tm.load_agaricus(__file__)
      bst = xgb.train({"tree_method": "hist"}, dtrain, 2)
      predt_2 = bst.predict(dtrain)
      assert np.all(np.abs(predt_2 - predt_1) < 1e-6)
  
imports: import json
  import os
  import tempfile
  import numpy
  import pytest
  import xgboost
  from xgboost import testing
  from xgboost.testing.updater import ResetStrategy
label_desc: Use image node_id 3 for calling the TestModels obj's underlying member method code with example usage: obj.test_boost_from_prediction() without return types