class_docstr: Supports T5, mBART, Marian, other models that inherit from Bart.
class_docstr_tok: ["Supports","T5",",","mBART",",","Marian",",","other","models","that","inherit","from","Bart","."]
code: def calc_generative_metrics(self, preds, target) -> dict:
      return calculate_bleu(preds, target)
  
imports: import argparse
  import gc
  import os
  import sys
  from pathlib import Path
  from typing import List
  import pytorch_lightning
  import torch
  from finetune import SummarizationModule, TranslationModule
  from finetune import main
  from make_student import create_student_by_copying_alternating_layers, get_layers_to_supervise
  from torch import nn
  from transformers import AutoModelForSeq2SeqLM, MBartTokenizer, T5ForConditionalGeneration
  from transformers.models.bart.modeling_bart import shift_tokens_right
  from utils import calculate_bleu, check_output_dir, freeze_params, label_smoothed_nll_loss, use_task_specific_params
  from lightning_base import generic_train
label_desc: Use image node_id 2 for calling the TranslationDistiller obj's underlying member method code with example usage: obj.calc_generative_metrics(preds, target) and returns: calculate_bleu