code: def process_train_record(record) -> tuple:
      """Extracts information from record and prepares a format required by the EffDet training"""
      image = im2tensor(record.img)
      # background and dummy if no label in record
      classes = (
          record.detection.label_ids
          if record.detection.label_ids
          else [0]
      )
      bboxes = (
          [bbox.yxyx for bbox in record.detection.bboxes]
          if len(record.detection.label_ids) > 0
          else [[0, 0, 0, 0]]
      )
      return image, bboxes, classes
  
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 7 for calling a global function with example usage: process_train_record(record) and returns: image,  bboxes,  classes