code: def on_validation_step_end(
      self, steps_completed: int, metrics: Dict[str, Any]
  ) -> None:
      logger.debug("Write validation metrics for TensorBoard")
      for name, value in metrics.items():
          if not name.startswith("val"):
              name = "val_" + name
          self._maybe_write_metric(name, value, steps_completed)
  
      self.writer.reset()
  
file_path: determined/harness/determined/tensorboard/metric_writers/callback.py
imports: import abc
  import logging
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  from determined import util
label_desc: Use image node_id 4 for calling the BatchMetricWriter obj's underlying member method code with example usage: obj.on_validation_step_end(steps_completed, metrics) without return types