code: def models_equals(model1, model2):
      w1 = model1.get_weights()
      w2 = model2.get_weights()
      assert len(w1) == len(w2)
      for w, w_new in zip(w1, w2):
          np.testing.assert_array_equal(w, w_new)
  
imports: import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: models_equals(model1, model2) without return types