code: def test_get_config():
      opt = Lookahead("adam", sync_period=10, slow_step_size=0.4)
      opt = tf.keras.optimizers.deserialize(
          tf.keras.optimizers.serialize(opt)
      )
      config = opt.get_config()
      assert config["sync_period"] == 10
      assert config["slow_step_size"] == 0.4
  
file_path: addons/tensorflow_addons/optimizers/tests/lookahead_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.optimizers import Lookahead
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_config() without return types