code: def test_from_to_config():
      base_layer = tf.keras.layers.Dense(1)
      sn = spectral_normalization.SpectralNormalization(base_layer)
      config = sn.get_config()
  
      new_sn = spectral_normalization.SpectralNormalization.from_config(
          config
      )
      assert sn.power_iterations == new_sn.power_iterations
  
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 2 for calling a global function with example usage: test_from_to_config() without return types