code: def get_cnn_functional_model(shared_layers=False):
      inputs = layers.Input(shape=(7, 3))
      x = layers.Conv1D(2, 2, padding="same")(inputs)
      if shared_layers:
          layer = layers.Conv1D(2, 2, padding="same", name="shared")
          x = layer(x)
          x = layer(x)
      outputs = layers.Conv1D(2, 2, padding="same")(x)
      model = models.Model(inputs, outputs)
      return model
  
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 a global function with example usage: get_cnn_functional_model(shared_layers) and returns: model