code: def __init__(self, config, tokenizer, set):
      self.config = config
      self.tokenizer = tokenizer
      self.set = set
      self.is_casual_model = bool(config["model_name"] in CLM_MODELS)
      self.paired_text = bool(
          set == "train"
          or (
              self.set == "valid"
              and self.config["metrics_for_best_model"] == ["loss"]
          )
      )
  
file_path: TextBox/textbox/data/abstract_dataset.py
imports: import os
  import torch, warnings
  import math
  from torch.utils.data import DataLoader, Dataset
  from textbox import CLM_MODELS
  from typing import List
  from torch.nn.utils.rnn import pad_sequence
  from textbox.data.misc import load_data, _pad_sequence
label_desc: Use image node_id 1 to create a new AbstractCollate object  with example: obj = AbstractCollate(config, tokenizer, set)