def METHOD_NAME(cls, model: tf.keras.Model):
    """
    This function instantiates the feature extraction model for per layer outputs
    :param model: Keras model.
    :return: Intermediate keras model for feature extraction
    """
    outputs = [layer.output for layer in model.layers]
    intermediate_model = tf.keras.models.Model(inputs=model.inputs, outputs=outputs)
    intermediate_model.trainable = False
    return intermediate_model