code: def minibatch_lm_loss(self, sents):
      sent_losses = [self.sent_lm_loss(sent) for sent in sents]
      minibatch_loss = dy.esum(sent_losses)
      total_words = sum(len(sent) for sent in sents)
      return minibatch_loss, total_words
  
file_path: dynet/examples/rnnlm/lstmlm-auto.py
imports: from __future__ import print_function
  from collections import defaultdict
  import math
  import random
  import time
  import dynet
label_desc: Use image node_id 3 for calling the LSTMLM obj's underlying member method code with example usage: obj.minibatch_lm_loss(sents) and returns: minibatch_loss,  total_words