code: def process_infer_record(record) -> tuple:
      """Extracts information from record and prepares a format required by the EffDet inference"""
      image = im2tensor(record.img)
      n_channels, image_height, image_width = image.shape
      image_scale = 1.0
      # EffDet expects image size to be passed in W, H notation
      return image, (image_width, image_height), image_scale
  
file_path: icevision/icevision/models/ross/efficientdet/dataloaders.py
imports: from icevision.imports import *
  from icevision.models.utils import *
label_desc: Use image node_id 8 for calling a global function with example usage: process_infer_record(record) and returns: image,  image_width,  image_height,  image_scale