def test_adapt_doesnt_overwrite_input_shape(self):
    "Check that `.adapt()` doesn't change the `input_shape`."
    adapt_dataset = np.array([[[1.0, 2.0]], [[3.0, 4.0]], [[5.0, 6.0]]], dtype=np.float32)
    layer = AddingPreprocessingLayer(input_shape=[1, 2])
    layer.adapt(adapt_dataset)
    model = keras.Sequential([layer])
    self.assertTrue(model.built)
    self.assertEqual(model.input_shape, (None, 1, 2))
Check that `.adapt()` doesn't change the `input_shape`.
def test_adapt_doesnt_overwrite_input_shape(self):
    
    adapt_dataset = np.array([[[1.0, 2.0]], [[3.0, 4.0]], [[5.0, 6.0]]], dtype=np.float32)
    layer = AddingPreprocessingLayer(input_shape=[1, 2])
    layer.adapt(adapt_dataset)
    model = keras.Sequential([layer])
    self.assertTrue(model.built)
    self.assertEqual(model.input_shape, (None, 1, 2))