code: def angular_distance(feature: TensorLike):
      """Computes the angular distance matrix.
  
      output[i, j] = 1 - cosine_similarity(feature[i, :], feature[j, :])
  
      Args:
        feature: 2-D Tensor of size `[number of data, feature dimension]`.
  
      Returns:
        angular_distances: 2-D Tensor of size `[number of data, number of data]`.
      """
      # normalize input
      feature = tf.math.l2_normalize(feature, axis=1)
  
      # create adjaceny matrix of cosine similarity
      angular_distances = 1 - tf.matmul(
          feature, feature, transpose_b=True
      )
  
      # ensure all distances > 1e-16
      angular_distances = tf.maximum(angular_distances, 0.0)
  
      return angular_distances
  
imports: import tensorflow
  from tensorflow_addons.utils.types import TensorLike
label_desc: Use image node_id 2 for calling a global function with example usage: angular_distance(feature) and returns: angular_distances