def METHOD_NAME():
    cl_obj = contrastive.ContrastiveLoss()
    y_true = tf.constant([0, 0, 1, 1, 0, 1], dtype=tf.dtypes.int64)
    y_pred = tf.constant([1.0, 1.0, 0.0, 0.0, 1.0, 0.0], dtype=tf.dtypes.float32)
    loss = cl_obj(y_true, y_pred)
    np.testing.assert_allclose(loss, 0.0)