replace no_cuda with use_cpu in test_pytorch_examples
### What does this PR do?
This PR replace `no_cuda` with `use_cpu` in `test_pytorch_examples.py`, as `no_cuda` training argument is deprecated([see](https://github.com/huggingface/transformers/pull/24863)) . By the way delete a piece of code that will never be used.

_The documentation is not available anymore as the PR was closed or merged._