code: def test_e2e_detect(
      samples_source, fridge_efficientdet_model, fridge_class_map
  ):
      img_path = samples_source / "fridge/odFridgeObjects/images/10.jpg"
      tfms_ = tfms.A.Adapter(
          [*tfms.A.resize_and_pad(384), tfms.A.Normalize()]
      )
      pred_dict = efficientdet.end2end_detect(
          img_path, tfms_, fridge_efficientdet_model, fridge_class_map
      )
      assert len(pred_dict["detection"]["bboxes"]) == 2
  
file_path: icevision/tests/models/efficient_det/test_prediction.py
imports: import pytest
  from icevision.all import *
  import albumentations
  from icevision.models.inference import postprocess_bbox
  from icevision.models.ross import efficientdet
label_desc: Use image node_id 1 for calling a global function with example usage: test_e2e_detect(samples_source, fridge_efficientdet_model, fridge_class_map) without return types