code: def relative_cosine(tf_tensor_1, tf_tensor_2):
      """
      Returns the cosine of every row in tensor_1 against every row in tensor_2.
      :param tf_tensor_1:
      :param tf_tensor_2:
      :return:
      """
      normalized_t1 = tf.nn.l2_normalize(tf_tensor_1, 1)
      normalized_t2 = tf.nn.l2_normalize(tf_tensor_2, 1)
      return tf.matmul(normalized_t1, normalized_t2, transpose_b=True)
  
file_path: tensorrec/tensorrec/recommendation_graphs.py
imports: import tensorflow
label_desc: Use image node_id 8 for calling a global function with example usage: relative_cosine(tf_tensor_1, tf_tensor_2) and returns: tf