def METHOD_NAME():
    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