code: def auc_score(labels, predict, num_thresholds=5000):
      predictions = tf.nn.sigmoid(predict)
      _, auc = tf.metrics.auc(
          labels, predictions, num_thresholds=num_thresholds
      )
      return auc
  
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 2 for calling a global function with example usage: auc_score(labels, predict, num_thresholds) and returns: auc