code: def _default_labels_collate_fn(labels: List):
      labels = list(map(_to_tensor, labels))
      return torch.stack(labels)
  
file_path: nni/nni/contrib/distillation/utils.py
imports: from pathlib import Path
  import pickle
  import random
  from typing import Dict, List
  import numpy
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: _default_labels_collate_fn(labels) and returns: torch