code: def test_invalid_layer(self):
      layer = layers.SpectralNormalization(layers.ReLU())
      inputs = np.ones(shape=(4, 2))
      with self.assertRaisesRegex(
          ValueError,
          "object has no attribute 'kernel' nor 'embeddings'",
      ):
          layer(inputs)
  
file_path: keras/keras/layers/normalization/spectral_normalization_test.py
imports: import numpy
  import pytest
  from keras import backend
  from keras import initializers
  from keras import layers
  from keras import testing
label_desc: Use image node_id 3 for calling the SpectralNormalizationTest obj's underlying member method code with example usage: obj.test_invalid_layer() without return types