code: def compare_model(
      self, bmodel, kmodel, input_data, rtol=1e-5, atol=1e-5
  ):
      WeightLoader.load_weights_from_kmodel(bmodel, kmodel)
      bmodel.training(is_training=False)
      bigdl_output = bmodel.forward(input_data)
      keras_output = kmodel.predict(input_data)
      self.assert_allclose(
          bigdl_output, keras_output, rtol=rtol, atol=atol
      )
  
imports: from __future__ import print_function
  import numpy
  from keras.models import Sequential, Model
  from keras.layers.core import *
  from keras.layers.convolutional import *
  from keras.layers import Dense, Dropout, Input
  from keras.optimizers import RMSprop
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.keras.converter import *
  from bigdl.dllib.keras.converter import WeightLoader, WeightsConverter
  import numpy
  from unittest import TestCase
  import keras
  from bigdl.dllib.nn.keras.keras_utils import *
label_desc: Use image node_id 16 for calling the BigDLTestCase obj's underlying member method code with example usage: obj.compare_model(bmodel, kmodel, input_data, rtol, atol) without return types