Support huggingface_hub 0.5
Looks like GH actions is not able to resolve `huggingface_hub` 0.5.0, I'm investivating _The documentation is not available anymore as the PR was closed or merged._ I'm glad to see changes in `huggingface_hub` are simplifying code here. seems to supersede #4102, feel free to close mine :) maybe just cherry-pick the docstring fix I think I've found the issue:
- https://github.com/huggingface/huggingface_hub/pull/790 Good catch, `huggingface_hub` doesn't support python 3.6 anymore indeed, therefore we should keep support for 0.4.0. I'm reverting the requirement version bump for now.

We can update the requirement once we drop support for python 3.6 in `datasets` @lhoestq, I've opened this PR on `huggingface_hub`: 
- https://github.com/huggingface/huggingface_hub/pull/823

Is there any strong reason why `huggingface_hub` no longer supports Python 3.6?  I think `datasets` can drop support for 3.6 soon. But for now maybe let's keep support for 0.4.0, python 3.6 users are not affected by https://github.com/huggingface/datasets/issues/4105 anyway.

`huggingface_hub` doesn't not have to support 3.6 again just for the CI IMO @lhoestq I commented on the PR, that IMO it is not a good practice to drop support for Python 3.6 without a previous deprecation cycle. Re-added support for older versions. I ended up checking `huggingface_hub` version to use the old, deprecated API for <0.5.0 I find it good practice to have all dependency version related code in a single file so that when you decide to remove support for an old version of a dependency it's easy to find and remove them, hence suggesting `utils/_fixes.py` in https://github.com/huggingface/datasets/issues/4105#issuecomment-1090041204 good idea, thanks ! I used your suggestion @adrinjalali , I just replace the try/except with a check on the version of `huggingface_hub`
Following https://github.com/huggingface/datasets/issues/4105

`huggingface_hub` deprecated some parameters in `HfApi` in 0.5. This PR updates all the calls to HfApi to remove all the deprecations, <s>and I set the `hugginface_hub` requirement to `>=0.5.0`</s>

cc @adrinjalali @LysandreJik 