class_docstr: Base dataloader for the Jigsaw Toxic Comment Classification Challenges.
class_docstr_tok: ["Base","dataloader","for","the","Jigsaw","Toxic","Comment","Classification","Challenges","."]
code: def load_val(self, test_csv_file, add_labels=False):
      val_set = self.load_data(test_csv_file)
      if add_labels:
          data_labels = pd.read_csv(test_csv_file[:-4] + "_labels.csv")
          for category in data_labels.columns[1:]:
              val_set[category] = data_labels[category]
      val_set = datasets.Dataset.from_pandas(val_set)
      return val_set
  
imports: import datasets
  import numpy
  import pandas
  import torch
  from torch.utils.data.dataset import Dataset
  from tqdm import tqdm
label_desc: Use image node_id 4 for calling the JigsawData obj's underlying member method code with example usage: obj.load_val(test_csv_file, add_labels) and returns: val_set