code: def test_serialization(self):
      layer = layers.RestoreList(by_scatter=True)
      serialized = tf.keras.layers.serialize(layer)
      loaded = tf.keras.layers.deserialize(serialized)
      self.assertAllEqual(loaded.get_config(), layer.get_config())
  
      logits = loaded(inputs=(self.flattened_logits, self.mask))
      self.assertAllEqual([2, 3], logits.get_shape().as_list())
      self.assertAllClose(
          [
              [1.5, 0.5, tf.math.log(_EPSILON)],
              [
                  -1.0 / 3.0,
                  tf.math.log(_EPSILON),
                  tf.math.log(_EPSILON),
              ],
          ],
          logits.numpy(),
      )
      logits = loaded(inputs=(self.flattened_logits_2d, self.mask))
      self.assertAllEqual([2, 3], logits.get_shape().as_list())
      self.assertAllClose(
          [
              [1.5, 0.5, tf.math.log(_EPSILON)],
              [
                  -1.0 / 3.0,
                  tf.math.log(_EPSILON),
                  tf.math.log(_EPSILON),
              ],
          ],
          logits.numpy(),
      )
  
imports: import tensorflow
  from tensorflow_ranking.python.keras import layers
label_desc: Use image node_id 4 for calling the RestoreListTest obj's underlying member method code with example usage: obj.test_serialization() without return types