code: def __init__(
      self,
      task,
      sentence_avg,
      label_smoothing,
      ignore_prefix_size,
      report_accuracy,
      latency_avg_weight,
      latency_var_weight,
      latency_avg_type,
      latency_var_type,
      latency_gather_method,
      latency_update_after,
  ):
      super().__init__(
          task,
          sentence_avg,
          label_smoothing,
          ignore_prefix_size,
          report_accuracy,
      )
      assert (
          LATENCY_METRICS is not None
      ), "Please make sure SimulEval is installed."
  
      self.latency_avg_weight = latency_avg_weight
      self.latency_var_weight = latency_var_weight
      self.latency_avg_type = latency_avg_type
      self.latency_var_type = latency_var_type
      self.latency_gather_method = latency_gather_method
      self.latency_update_after = latency_update_after
  
file_path: fairseq/fairseq/criterions/label_smoothed_cross_entropy_latency_augmented.py
imports: from dataclasses import dataclass, field
  import torch
  from fairseq import utils
  from fairseq.logging import metrics
  from fairseq.criterions import register_criterion
  from fairseq.criterions.label_smoothed_cross_entropy import LabelSmoothedCrossEntropyCriterion, LabelSmoothedCrossEntropyCriterionConfig
label_desc: Use image node_id 1 to create a new LatencyAugmentedLabelSmoothedCrossEntropyCriterion object from inherited base classes: LabelSmoothedCrossEntropyCriterion with example: obj = LatencyAugmentedLabelSmoothedCrossEntropyCriterion(task, sentence_avg, label_smoothing, ignore_prefix_size, report_accuracy, latency_avg_weight, latency_var_weight, latency_avg_type, latency_var_type, latency_gather_method, latency_update_after)