code: def __init__(self, task, ctc_weight):
      super().__init__(task)
      self.ctc_weight = ctc_weight
  
file_path: fairseq/fairseq/criterions/fastspeech2_loss.py
imports: from typing import List, Dict, Any
  from dataclasses import dataclass, field
  import torch
  import torch.nn.functional
  from fairseq import utils
  from fairseq.logging import metrics
  from fairseq.criterions import FairseqCriterion, register_criterion
  from fairseq.dataclass import FairseqDataclass
  from fairseq.data.data_utils import lengths_to_mask
  from fairseq.models.fairseq_model import FairseqEncoderModel
label_desc: Use image node_id 1 to create a new FastSpeech2Loss object from inherited base classes: FairseqCriterion with example: obj = FastSpeech2Loss(task, ctc_weight)