code: def test_lightining_efficientdet_logs_losses_during_validation_step(
      fridge_efficientdet_dls,
      fridge_efficientdet_model,
      light_model_cls,
  ):
      with torch.set_grad_enabled(False):
          train_dl, _ = fridge_efficientdet_dls
          light_model = light_model_cls(
              model=fridge_efficientdet_model, metrics=None
          )
          for batch in train_dl:
              break
          light_model.convert_raw_predictions = lambda *args: None
          light_model.compute_loss = lambda *args: None
          light_model.accumulate_metrics = lambda *args: None
  
          light_model.validation_step(batch, 0)
  
          assert sorted(light_model.logs.keys()) == sorted(
              ["val_loss", "val_box_loss", "val_class_loss"]
          )
  
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 4 for calling a global function with example usage: test_lightining_efficientdet_logs_losses_during_validation_step(fridge_efficientdet_dls, fridge_efficientdet_model, light_model_cls) without return types