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