code: def test_with_keras(self):
      kmodel = self.keras_knrm(5, 10, 22, 50)
      input_data = np.random.randint(20, size=(4, 15))
      koutput = kmodel.predict([input_data[:, :5], input_data[:, 5:]])
      kweights = kmodel.get_weights()
      bweights = [kweights[0], np.transpose(kweights[1]), kweights[2]]
      model = KNRM(5, 10, glove_path, target_mode="classification")
      model.set_weights(bweights)
      output = model.forward(input_data)
      self.assert_allclose(output, koutput)
  
file_path: analytics-zoo/pyzoo/test/zoo/models/textmatching/test_knrm.py
imports: import os
  import pytest
  from keras.layers import *
  from keras.models import Model
  from zoo.models.textmatching import KNRM
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
label_desc: Use image node_id 2 for calling the TestKNRM obj's underlying member method code with example usage: obj.test_with_keras() without return types