def METHOD_NAME(self):
    """Verify that an error is raised if no training batch is available."""
    with self.assertRaises(NoTrainingBatchError):
        self.instance.train(
            triples_factory=self.triples_factory,
            num_epochs=self.num_epochs,
            drop_last=True,
            batch_size=100_000,
        )