code: def build_infer_batch(records: Sequence[BaseRecord]):
      tensor_images = []
      for record in records:
          tensor_images.append(im2tensor(record.img))
  
      tensor_images = torch.stack(tensor_images)
      return (tensor_images,), records
  
file_path: icevision/icevision/models/fastai/unet/dataloaders.py
imports: from icevision.imports import *
  from icevision.core import *
  from icevision.models.utils import *
label_desc: Use image node_id 5 for calling a global function with example usage: build_infer_batch(records) and returns: tensor_images,  records