Fix test for torchneuroncore in Trainer
# What does this PR do?

The test was always passing since the function is not None...
_The documentation is not available anymore as the PR was closed or merged._