code: def test_serialization():
      optimizer = yogi.Yogi(1e-4)
      config = tf.keras.optimizers.serialize(optimizer)
      new_optimizer = tf.keras.optimizers.deserialize(config)
      assert new_optimizer.get_config() == optimizer.get_config()
  
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.optimizers import yogi
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 18 for calling a global function with example usage: test_serialization() without return types