code: def test_no_kernel():
      with pytest.raises(AttributeError):
          spectral_normalization.SpectralNormalization(
              tf.keras.layers.MaxPooling2D(2, 2)
          ).build((2, 2))
  
file_path: addons/tensorflow_addons/layers/tests/spectral_normalization_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.layers import spectral_normalization
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 9 for calling a global function with example usage: test_no_kernel() without return types