Contrastive Loss for Siamese Networks with Keras and TensorFlow