code: def sum_abs_distance(labels, preds):
      
      with tf.variable_scope("sum_abs_distance"):
          return tf.reduce_sum(tf.abs(preds - labels), axis=-1)
docs: Compute the sum of abs distances.
  
      :param labels: A float tensor of shape [batch_size, ..., X] representing the labels.
      :param preds: A float tensor of shape [batch_size, ..., X] representing the predictions.
      :return: A float tensor of shape [batch_size, ...] representing the summed absolute distance.