code: def __init__(self, task, sentence_avg):
      super().__init__(task)
      self.sentence_avg = sentence_avg
  
file_path: fairseq/examples/speech_recognition/criterions/cross_entropy_acc.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import math
  import torch
  import torch.nn.functional
  from fairseq import utils
  from fairseq.criterions import FairseqCriterion, register_criterion
label_desc: Use image node_id 1 to create a new CrossEntropyWithAccCriterion object from inherited base classes: FairseqCriterion with example: obj = CrossEntropyWithAccCriterion(task, sentence_avg)