code: def acc_score(labels, predict, name=None):
      predictions = tf.floor(predict + 0.5)
      _, acc = tf.metrics.accuracy(labels, predictions)
      return acc
  
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 1 for calling a global function with example usage: acc_score(labels, predict, name) and returns: acc