code: def get_subclassed_model(keras):
      class MyModel(keras.Model):
          def __init__(self, **kwargs):
              super().__init__(**kwargs)
              self.dense_1 = keras.layers.Dense(3, activation="relu")
              self.dense_2 = keras.layers.Dense(1, activation="sigmoid")
  
          def call(self, x):
              return self.dense_2(self.dense_1(x))
  
      model = MyModel()
      model(np.random.random((2, 3)))
      return model
  
imports: import os
  import numpy
  import pytest
  import keras
  from keras import layers
  from keras import models
  from keras import ops
  from keras import testing
  from keras.legacy.saving import legacy_h5_format
  from keras.saving import object_registration
  from keras.saving import serialization_lib
label_desc: Use image node_id 3 for calling a global function with example usage: get_subclassed_model(keras) and returns: model, self