code: def test_inference_postprocess_bbox(
      samples_source, fridge_efficientdet_model
  ):
      img_path = samples_source / "fridge/odFridgeObjects/images/10.jpg"
      img = open_img(img_path, ensure_no_data_convert=True)
      img_size = get_img_size(img_path)
  
      tfms_ = tfms.A.Adapter(
          [*tfms.A.resize_and_pad(384), tfms.A.Normalize()]
      )
      infer_ds = Dataset.from_images([np.array(img)], tfms_)
      pred = efficientdet.predict(fridge_efficientdet_model, infer_ds)[
          0
      ]
  
      for bbox in pred.pred.detection.bboxes:
          xmin, ymin, xmax, ymax = postprocess_bbox(
              img,
              bbox,
              tfms_.tfms_list,
              pred.pred.height,
              pred.pred.width,
          )
          assert xmin > 0
          assert xmax < img_size.width
          assert ymin > 0
          assert ymax < img_size.height
  
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 2 for calling a global function with example usage: test_inference_postprocess_bbox(samples_source, fridge_efficientdet_model) without return types