code: def softmax_crossentropy(logits, labels):
      batch_loss = tf.nn.softmax_cross_entropy_with_logits(
          logits=logits, labels=labels
      )
      return tf.reduce_mean(batch_loss)
  
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: softmax_crossentropy(logits, labels) and returns: tf