code: def test_lightining_keypoints_finalizes_metrics_on_test_epoch_end(
      light_model_cls,
  ):
      with torch.set_grad_enabled(False):
          model = keypoint_rcnn.model(num_keypoints=19)
          light_model = light_model_cls(model)
  
          light_model.test_epoch_end(None)
  
          assert light_model.was_finalize_metrics_called == True
  
imports: import pytest
  from icevision.all import *
  from icevision.models.torchvision import keypoint_rcnn
label_desc: Use image node_id 3 for calling a global function with example usage: test_lightining_keypoints_finalizes_metrics_on_test_epoch_end(light_model_cls) without return types