code: def build_infer_batch(records):
      imgs, img_metas = [], []
      for record in records:
          imgs.append(_img_tensor(record))
          img_metas.append(_img_meta(record))
  
      data = {
          "img": [torch.stack(imgs)],
          "img_metas": [img_metas],
      }
  
      return data, records
  
file_path: icevision/icevision/models/mmdet/common/bbox/dataloaders.py
imports: from icevision.models.mmdet.common.utils import convert_background_from_zero_to_last
  from icevision.core import *
  from icevision.imports import *
  from icevision.models.utils import *
label_desc: Use image node_id 6 for calling a global function with example usage: build_infer_batch(records) and returns: data,  records