code: def cosine_similarity(v1, v2):
      """Cosine similarity [-1, 1].
  
      Parameters
      ----------
      v1, v2 : Tensor
          Tensor with the same shape [batch_size, n_feature].
  
      References
      ----------
      - `Wiki <https://en.wikipedia.org/wiki/Cosine_similarity>`__.
  
      """
  
      return tf.reduce_sum(tf.multiply(v1, v2), 1) / (
          tf.sqrt(tf.reduce_sum(tf.multiply(v1, v1), 1))
          * tf.sqrt(tf.reduce_sum(tf.multiply(v2, v2), 1))
      )
  
imports: import numbers
  import tensorflow
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops, math_ops, nn_ops, standard_ops
  from tensorlayer import logging
label_desc: Use image node_id 13 for calling a global function with example usage: cosine_similarity(v1, v2) and returns: unknown