code: def test_config():
      cl_obj = contrastive.ContrastiveLoss(
          reduction=tf.keras.losses.Reduction.SUM, name="cl"
      )
      assert cl_obj.name == "cl"
      assert cl_obj.reduction == tf.keras.losses.Reduction.SUM
  
file_path: addons/tensorflow_addons/losses/tests/contrastive_test.py
imports: import numpy
  import tensorflow
  from tensorflow_addons.losses import contrastive
label_desc: Use image node_id 1 for calling a global function with example usage: test_config() without return types