class_docstr: Data collator used denoising language modeling task in BART.
  The implementation is based on
  https://github.com/pytorch/fairseq/blob/1bba712622b8ae4efb3eb793a8a40da386fe11d0/fairseq/data/denoising_dataset.py.
  
  BART Original hyperparams: https://github.com/facebookresearch/fairseq/issues/1899#issuecomment-1069429320
code: def __post_init__(self):
      if (
          self.tokenizer.mask_token is None
          or self.tokenizer.eos_token is None
      ):
          raise ValueError
  
file_path: TextBox/textbox/data/denoising_dataset.py
imports: import math
  import torch
  import random
  from typing import List, Dict
  from nltk import sent_tokenize
  from textbox.data.misc import _pad_sequence
label_desc: Use image node_id 3 for calling the DenoisingCollate obj's underlying member method code with example usage: obj.__post_init__() without return types