code: def on_validation_epoch_end(self):
      if not self.failure_on_step and not self.failure_on_training:
          self._signal()
  
imports: import inspect
  import pytest
  from lightning.fabric.utilities.seed import seed_everything
  from lightning.pytorch import Callback, Trainer
  from lightning.pytorch.callbacks import OnExceptionCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel, RandomDataset
  from lightning.pytorch.utilities.exceptions import SIGTERMException
  from torch.utils.data.dataloader import DataLoader
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 6 for calling the TestAutoRestartModelUnderSignal obj's underlying member method code with example usage: obj.on_validation_epoch_end() without return types