code: def _effdet_validation_step(validation_step, batch, batch_idx):
      images = batch[0][0]
      batch[0][1]["img_scale"] = torch.ones_like(
          images[:, 0, 0, 0]
      ).unsqueeze(1)
      batch[0][1]["img_size"] = (
          (torch.ones_like(images[:, 0, 0, 0]) * images[0].shape[-1])
          .unsqueeze(1)
          .repeat(1, 2)
      )
      return validation_step(batch, batch_idx)
  
imports: from functools import partial
  import torch
  from flash.core.data.utils import _STAGES_PREFIX
  from flash.core.utilities.imports import _ICEVISION_AVAILABLE
label_desc: Use image node_id 2 for calling a global function with example usage: _effdet_validation_step(validation_step, batch, batch_idx) and returns: validation_step