code: def test_config():
      nl_obj = npairs.NpairsLoss(name="nl")
      assert nl_obj.name == "nl"
      assert nl_obj.reduction == tf.keras.losses.Reduction.NONE
  
file_path: addons/tensorflow_addons/losses/tests/npairs_test.py
imports: import numpy
  import tensorflow
  from tensorflow_addons.losses import npairs
label_desc: Use image node_id 1 for calling a global function with example usage: test_config() without return types