Re-add download_manager module in utils
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-06-15T09:50:37Z
https://github.com/huggingface/datasets/pull/4497#issuecomment-1156253325
https://api.github.com/repos/huggingface/datasets/issues/4497
IC_kwDODunzps5E6waN
https://api.github.com/repos/huggingface/datasets/issues/comments/1156253325/reactions
2022-06-15T10:33:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156253325
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
MEMBER
Thanks for the fix.

I'm wondering how this fixes backward compatibility...

Executing this code:
```python
from datasets.utils.download_manager import DownloadMode
```
we will have
```python
DownloadMode = None
```

If afterwards we use something like:
```python
if download_mode == DownloadMode.FORCE_REDOWNLOAD
```
that will raise an exception.
2022-06-15T09:52:02Z
https://github.com/huggingface/datasets/pull/4497#issuecomment-1156254825
https://api.github.com/repos/huggingface/datasets/issues/4497
IC_kwDODunzps5E6wxp
https://api.github.com/repos/huggingface/datasets/issues/comments/1156254825/reactions
2022-06-15T09:52:02Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156254825
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
It works fine on my side:
```python
>>> from datasets.utils.download_manager import DownloadMode
>>> DownloadMode is not None
True
```
2022-06-15T09:57:44Z
https://github.com/huggingface/datasets/pull/4497#issuecomment-1156260635
https://api.github.com/repos/huggingface/datasets/issues/4497
IC_kwDODunzps5E6yMb
https://api.github.com/repos/huggingface/datasets/issues/comments/1156260635/reactions
2022-06-15T09:57:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156260635
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
As reported in https://github.com/huggingface/evaluate/pull/143
```python
from datasets.utils import DownloadConfig
```
is also missing, I'm re-adding it
2022-06-15T10:18:19Z
https://github.com/huggingface/datasets/pull/4497#issuecomment-1156282259
https://api.github.com/repos/huggingface/datasets/issues/4497
IC_kwDODunzps5E63eT
https://api.github.com/repos/huggingface/datasets/issues/comments/1156282259/reactions
2022-06-15T10:18:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156282259
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
Took the liberty of merging this one, to do a patch release soon. If we think of a better approach we can improve it later
2022-06-15T10:24:19Z
https://github.com/huggingface/datasets/pull/4497#issuecomment-1156290446
https://api.github.com/repos/huggingface/datasets/issues/4497
IC_kwDODunzps5E65eO
https://api.github.com/repos/huggingface/datasets/issues/comments/1156290446/reactions
2022-06-15T10:24:19Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156290446
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
https://github.com/huggingface/datasets/pull/4384 moved `datasets.utils.download_manager` to `datasets.download.download_manager`

This breaks `evaluate` which imports `DownloadMode` from `datasets.utils.download_manager` 

This PR re-adds `datasets.utils.download_manager` without circular imports.

We could also show a message that says that accessing it is deprecated, but I think we can do this in a subsequent PR, and just focus on doing a patch release for now