code: def test_custom_clone_function(self, model_fn):
      def clone_function(layer):
          config = layer.get_config()
          config["name"] = config["name"] + "_custom"
          return layer.__class__.from_config(config)
  
      model = model_fn()
      new_model = clone_model(model, clone_function=clone_function)
      for l1, l2 in zip(model.layers, new_model.layers):
          if not isinstance(l1, layers.InputLayer):
              self.assertEqual(l2.name, l1.name + "_custom")
  
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 2 for calling the CloneModelTest obj's underlying member method code with example usage: obj.test_custom_clone_function(model_fn) and returns: layer