code: def _check_json_model_predict_consistency(self, glc_model, test_data):
      json_model = GBDTDecoder.create_from_gbdt(glc_model)
      glc_pred = list(glc_model.predict(test_data))
      json_pred = list(json_model.predict(test_data))
      max_diff = max([abs(x - y) for x, y in zip(glc_pred, json_pred)])
      self.assertAlmostEqual(max_diff, 0.0, delta=self.DELTA)
  
      # Test high precision json
      trees_json = glc_model._dump_to_json(with_stats=False)
      json_model = GBDTDecoder.create_from_gbdt_json(trees_json)
      glc_pred = list(glc_model.predict(test_data))
      json_pred = list(json_model.predict(test_data))
      max_diff = max([abs(x - y) for x, y in zip(glc_pred, json_pred)])
      self.assertEqual(max_diff, 0.0)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  import unittest
  import json
  import random
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling the TreeJsonDumpTest obj's underlying member method code with example usage: obj._check_json_model_predict_consistency(glc_model, test_data) without return types