code: def test_cloning_correctness(self, model_fn, is_conv=False):
      ref_input = np.random.random((2, 7, 3) if is_conv else (2, 3))
      model = model_fn()
      new_model = clone_model(model)
      ref_output = model(ref_input)
      new_model(ref_input)  # Maybe needed to build the model
      new_model.set_weights(model.get_weights())
      output = new_model(ref_input)
      self.assertAllClose(ref_output, output)
  
file_path: keras/keras/models/cloning_test.py
imports: import numpy
  import pytest
  import tree
  from absl.testing import parameterized
  from keras import layers
  from keras import models
  from keras import testing
  from keras.models.cloning import clone_model
label_desc: Use image node_id 1 for calling the CloneModelTest obj's underlying member method code with example usage: obj.test_cloning_correctness(model_fn, is_conv) without return types