code: def test_config():
      kappa_loss = WeightedKappaLoss(
          num_classes=4,
          weightage="linear",
          name="kappa_loss",
          epsilon=0.001,
      )
      assert kappa_loss.num_classes == 4
      assert kappa_loss.weightage == "linear"
      assert kappa_loss.name == "kappa_loss"
      np.testing.assert_allclose(kappa_loss.epsilon, 0.001, 1e-6)
  
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 5 for calling a global function with example usage: test_config() without return types