code: def __init__(
      self,
      task,
      sentence_avg,
      label_smoothing,
      ignore_prefix_size,
      report_accuracy,
      ctc_weight,
  ):
      super().__init__(
          task,
          sentence_avg,
          label_smoothing,
          ignore_prefix_size,
          report_accuracy,
      )
      self.ctc_weight = ctc_weight
  
file_path: fairseq/fairseq/criterions/label_smoothed_cross_entropy_with_ctc.py
imports: import math
  from dataclasses import dataclass, field
  import torch
  import torch.nn.functional
  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
  from fairseq.data.data_utils import lengths_to_mask
label_desc: Use image node_id 1 to create a new LabelSmoothedCrossEntropyWithCtcCriterion object from inherited base classes: LabelSmoothedCrossEntropyCriterion with example: obj = LabelSmoothedCrossEntropyWithCtcCriterion(task, sentence_avg, label_smoothing, ignore_prefix_size, report_accuracy, ctc_weight)