code: def mr_score(pos_scores, neg_scores):
      scores_all = tf.concat([neg_scores, pos_scores], axis=2)
      size = tf.shape(scores_all)[2]
      _, indices_of_ranks = tf.nn.top_k(scores_all, k=size)
      ranks = tf.argmax(indices_of_ranks, -1)
      return tf.reduce_mean(ranks)
  
file_path: euler/tf_euler/python/utils/metrics.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 9 for calling a global function with example usage: mr_score(pos_scores, neg_scores) and returns: tf