def METHOD_NAME(self):
    """Test whether losses are tracked by the result tracker."""
    self.instance.result_tracker = PythonResultTracker()
    self.instance.train(
        triples_factory=self.triples_factory,
        num_epochs=self.num_epochs,
        batch_size=self.batch_size,
    )
    # check non-empty metrics
    assert self.instance.result_tracker.metrics