code: def __getitem__(self, idx):
      text = str(self.texts[idx])
      text = " ".join(text.split())
      inputs = self.tokenizer(
          text,
          None,
          add_special_tokens=True,
          max_length=self.max_length,
          truncation=True,
          padding="max_length",
          return_tensors="pt",
      )
      inputs = {
          k: v.type(torch.long).squeeze(0) for k, v in inputs.items()
      }
  
      labels_pt = torch.tensor(self.labels[idx], dtype=torch.float)
      return inputs, labels_pt
  
imports: import torch
label_desc: Use image node_id 2 for calling the TransformerDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: inputs,  labels_pt