code: def test_basic_spectralnorm(self):
      self.run_layer_test(
          layers.SpectralNormalization,
          init_kwargs={"layer": layers.Dense(2)},
          input_data=np.random.uniform(size=(10, 3, 4)),
          expected_output_shape=(10, 3, 2),
          expected_num_trainable_weights=2,
          expected_num_non_trainable_weights=1,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=False,
      )
      self.run_layer_test(
          layers.SpectralNormalization,
          init_kwargs={"layer": layers.Embedding(10, 4)},
          input_data=np.random.randint(10, size=(10,)),
          expected_output_shape=(10, 4),
          expected_num_trainable_weights=1,
          expected_num_non_trainable_weights=1,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=False,
          run_training_check=False,
      )
  
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 1 for calling the SpectralNormalizationTest obj's underlying member method code with example usage: obj.test_basic_spectralnorm() without return types