code: def test_serialization_hard():
      loss = triplet.TripletHardLoss()
      tf.keras.losses.deserialize(tf.keras.losses.serialize(loss))
  
file_path: addons/tensorflow_addons/losses/tests/triplet_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.losses import triplet
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 12 for calling a global function with example usage: test_serialization_hard() without return types