code: def assert_model(self, input_data, kmodel, rtol=1e-5, atol=1e-5):
      bmodel = DefinitionLoader.from_kmodel(kmodel)
      WeightLoader.load_weights_from_kmodel(bmodel, kmodel)
  
      keras_output = kmodel.predict(input_data)
      bmodel.training(is_training=False)
      bigdl_output = bmodel.forward(input_data)
  
      self.assert_allclose(
          keras_output, bigdl_output, rtol=rtol, atol=atol
      )
  
file_path: BigDL/python/dllib/test/bigdl/nn/test_backend.py
imports: from __future__ import print_function
  from keras.layers import *
  import pytest
  from keras.applications import *
  from bigdl.dllib.keras.converter import *
  from bigdl.dllib.nn.keras.backend import *
  from test.bigdl.test_utils import BigDLTestCase, TestModels
label_desc: Use image node_id 1 for calling the TestBackend obj's underlying member method code with example usage: obj.assert_model(input_data, kmodel, rtol, atol) without return types