def test_config_with_custom_name(self):
     layer = image_preprocessing.Resizing(5, 5, name='image_preproc')
     config = layer.get_config()
     layer_1 = image_preprocessing.Resizing.from_config(config)
     self.assertEqual(layer_1.name, layer.name)
 def test_invalid_interpolation(self):
     with self.assertRaises(NotImplementedError):
         image_preprocessing.Resizing(5, 5, 'invalid_interpolation')