def METHOD_NAME(self) -> None:
    self._buffer = []
    if self._enabled:
        if self._seed is None:
            self._seed = int(torch.empty((), dtype=torch.int64).random_().item())
        self._rng.seed(self._seed)
        self._seed = None