class_docstr: Tokenize
      
code: def _pad_labels(self, labels):
      if len(labels) >= self.max_sequence_len:
          return labels[self.max_sequence_len]
  
      return labels + [-100] * (self.max_sequence_len - len(labels))
  
imports: import logging
  from os.path import join
  import pytorch_lightning
  from pytorch_lightning.loggers import WandbLogger
  from torch.optim import AdamW
  import torch.nn
  import torch
  from torchmetrics import F1
  from torch.utils.data import DataLoader, Dataset
  from transformers import AutoTokenizer, AutoModel
label_desc: Use image node_id 3 for calling the TokenClassificationDataset obj's underlying member method code with example usage: obj._pad_labels(labels) and returns: unknown, labels