def METHOD_NAME(
        self,
        runner: Runner,
        batch_idx: int,
        data_batch: Optional[dict] = None,
        outputs: Optional[Sequence[DetDataSample]] = None) -> None:
    """Regularly record memory information.
    Args:
        runner (:obj:`Runner`): The runner of the validation process.
        batch_idx (int): The index of the current batch in the val loop.
        data_batch (dict, optional): Data from dataloader.
            Defaults to None.
        outputs (Sequence[:obj:`DetDataSample`], optional):
            Outputs from model. Defaults to None.
    """
    if self.every_n_inner_iters(batch_idx, self.interval):
        self._record_memory_information(runner)