code: def test_lightining_efficientdet_finalizes_metrics_on_validation_epoch_end(
      fridge_efficientdet_model, light_model_cls, metrics
  ):
      with torch.set_grad_enabled(False):
          light_model = light_model_cls(
              fridge_efficientdet_model, metrics=metrics
          )
          light_model.convert_raw_predictions = lambda *args: None
  
          light_model.validation_epoch_end(None)
  
          assert light_model.was_finalize_metrics_called == True
  
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_lightining_efficientdet_finalizes_metrics_on_validation_epoch_end(fridge_efficientdet_model, light_model_cls, metrics) without return types