code: def thresholded_output_transform(output):
      y_pred, y = output
      return torch.round(torch.sigmoid(y_pred)), y
  
file_path: ignite/examples/transformers/utils.py
imports: import torch
  from dataset import TransformerDataset
  from datasets import load_dataset
  from model import TransformerModel
  from transformers import AutoTokenizer
  from ignite.handlers import DiskSaver
label_desc: Use image node_id 4 for calling a global function with example usage: thresholded_output_transform(output) and returns: torch,  y