code: def test_serialization():
      loss = WeightedKappaLoss(num_classes=3)
      tf.keras.losses.deserialize(tf.keras.losses.serialize(loss))
  
file_path: addons/tensorflow_addons/losses/tests/kappa_loss_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.losses.kappa_loss import WeightedKappaLoss
label_desc: Use image node_id 6 for calling a global function with example usage: test_serialization() without return types