Clean Trainer tests and datasets dep
# What does this PR do?

This PR removes the installation of datasets from master and uses the dependency already in `testing` instead. It also cleans up a bit the tests in Trainer by:
- using the decorator `requires_datasets` when needed
- using a temp dir for the output of one test, to avoid some files to be created when the user has optuna installed