Update check of core deps
# What does this PR do?

This PR updates the check of core dependencies to:
- include all of them (huggingface_hub and safetensors were not tested)
- add Accelerate since we have a lot of issues with versions mismatch, with the work done on the Trainer

cc @ydshieh one of the lines removed here concerns the Python 3.6 but you should include the equivalent for your PR to drop Python 3.7
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_24277). All of your documentation changes will be reflected on that endpoint.