code: def test_serialization():
      optimizer = weight_decay_optimizers.AdamW(
          learning_rate=1e-4,
          weight_decay=1e-4,
          exclude_from_weight_decay=["var1"],
      )
      config = tf.keras.optimizers.serialize(optimizer)
      new_optimizer = tf.keras.optimizers.deserialize(config)
      assert new_optimizer.get_config() == optimizer.get_config()
  
imports: import importlib
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.utils import test_utils
  from tensorflow_addons.optimizers import weight_decay_optimizers
label_desc: Use image node_id 24 for calling a global function with example usage: test_serialization() without return types