code: def test_zero_distance():
      """Test that equal embeddings have a pairwise distance of 0."""
      equal_embeddings = tf.constant([[1.0, 0.5], [1.0, 0.5]])
  
      distances = pairwise_distance(equal_embeddings, squared=False)
      np.testing.assert_allclose(
          tf.math.reduce_sum(distances), 0, 1e-6, 1e-6
      )
  
file_path: addons/tensorflow_addons/losses/tests/metric_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.losses.metric_learning import pairwise_distance
label_desc: Use image node_id 1 for calling a global function with example usage: test_zero_distance() without return types