code: def build_infer_batch(
      records: Sequence[BaseRecord],
  ):
      images = []
      for record in records:
          images.append(im2tensor(record.img))
  
      data = {
          "img": [torch.stack(images)],
          "img_metas": [[_img_meta_mask(record)]],
      }
  
      return data, records
  
file_path: icevision/icevision/models/mmseg/common/dataloaders.py
imports: from icevision.imports import *
  from icevision.core import *
  from icevision.models.utils import *
  from icevision.utils import *
label_desc: Use image node_id 7 for calling a global function with example usage: build_infer_batch(records) and returns: data,  records