code: def test_get_config():
      opt = SWA("adam", average_period=10, start_averaging=0)
      opt = tf.keras.optimizers.deserialize(
          tf.keras.optimizers.serialize(opt)
      )
      config = opt.get_config()
      assert config["average_period"] == 10
      assert config["start_averaging"] == 0
  
file_path: addons/tensorflow_addons/optimizers/tests/stochastic_weight_averaging_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.optimizers import stochastic_weight_averaging
  from tensorflow_addons.optimizers.utils import fit_bn
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_config() without return types