code: def on_validation_batch_end(
      self,
      trainer,
      pl_module,
      outputs,
      batch: Any,
      batch_idx: int,
      dataloader_idx: int,
  ) -> None:
      batch_latency = time.perf_counter() - self.batch_latency
      pl_module.time_avg(batch_latency)
  
imports: from typing import Any
  import torch
  import time
  from pytorch_lightning.callbacks import Callback
  from pytorch_lightning.loops.dataloader.evaluation_loop import EvaluationLoop
  from bigdl.nano.utils.common import invalidInputError
  from collections import ChainMap
  from torchmetrics import Metric
label_desc: Use image node_id 5 for calling the LatencyCallback obj's underlying member method code with example usage: obj.on_validation_batch_end(trainer, pl_module, outputs, batch, batch_idx, dataloader_idx) without return types