code: def test_serialization_with_layers(name):
      layer = tf.keras.layers.Dense(
          3, activation=getattr(activations, name)
      )
      config = tf.keras.layers.serialize(layer)
      deserialized_layer = tf.keras.layers.deserialize(config)
      assert (
          deserialized_layer.__class__.__name__
          == layer.__class__.__name__
      )
      assert deserialized_layer.activation.__name__ == name
  
imports: import pytest
  import tensorflow
  from tensorflow_addons import activations
label_desc: Use image node_id 2 for calling a global function with example usage: test_serialization_with_layers(name) without return types