Allow dataset implement .take
NONE
```
    dataset = IterableDataset(dataset) if type(dataset) != IterableDataset else dataset  # to force dataset.take(batch_size) to work in non-streaming mode
   ```

2023-08-15T00:32:26Z
https://github.com/huggingface/datasets/issues/6150#issuecomment-1678267434
https://api.github.com/repos/huggingface/datasets/issues/6150
IC_kwDODunzps5kCFQq
https://api.github.com/repos/huggingface/datasets/issues/comments/1678267434/reactions
2023-08-15T00:32:26Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1678267434
https://avatars.githubusercontent.com/u/1855278?v=4
https://api.github.com/users/brando90/events{/privacy}
https://api.github.com/users/brando90/followers
https://api.github.com/users/brando90/following{/other_user}
https://api.github.com/users/brando90/gists{/gist_id}
https://github.com/brando90
brando90
MDQ6VXNlcjE4NTUyNzg=
https://api.github.com/users/brando90/orgs
https://api.github.com/users/brando90/received_events
https://api.github.com/users/brando90/repos
https://api.github.com/users/brando90/starred{/owner}{/repo}
https://api.github.com/users/brando90/subscriptions
User
https://api.github.com/users/brando90
public
NONE
hf discuss: https://discuss.huggingface.co/t/how-does-one-make-dataset-take-512-work-with-streaming-false-with-hugging-face-data-set/50770
2023-08-15T00:34:41Z
https://github.com/huggingface/datasets/issues/6150#issuecomment-1678268674
https://api.github.com/repos/huggingface/datasets/issues/6150
IC_kwDODunzps5kCFkC
https://api.github.com/repos/huggingface/datasets/issues/comments/1678268674/reactions
2023-08-15T00:34:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1678268674
https://avatars.githubusercontent.com/u/1855278?v=4
https://api.github.com/users/brando90/events{/privacy}
https://api.github.com/users/brando90/followers
https://api.github.com/users/brando90/following{/other_user}
https://api.github.com/users/brando90/gists{/gist_id}
https://github.com/brando90
brando90
MDQ6VXNlcjE4NTUyNzg=
https://api.github.com/users/brando90/orgs
https://api.github.com/users/brando90/received_events
https://api.github.com/users/brando90/repos
https://api.github.com/users/brando90/starred{/owner}{/repo}
https://api.github.com/users/brando90/subscriptions
User
https://api.github.com/users/brando90
public
NONE
so: https://stackoverflow.com/questions/76902824/how-does-one-make-dataset-take512-work-with-streaming-false-with-hugging-fac
2023-08-15T00:34:50Z
https://github.com/huggingface/datasets/issues/6150#issuecomment-1678268756
https://api.github.com/repos/huggingface/datasets/issues/6150
IC_kwDODunzps5kCFlU
https://api.github.com/repos/huggingface/datasets/issues/comments/1678268756/reactions
2023-08-15T00:34:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1678268756
https://avatars.githubusercontent.com/u/1855278?v=4
https://api.github.com/users/brando90/events{/privacy}
https://api.github.com/users/brando90/followers
https://api.github.com/users/brando90/following{/other_user}
https://api.github.com/users/brando90/gists{/gist_id}
https://github.com/brando90
brando90
MDQ6VXNlcjE4NTUyNzg=
https://api.github.com/users/brando90/orgs
https://api.github.com/users/brando90/received_events
https://api.github.com/users/brando90/repos
https://api.github.com/users/brando90/starred{/owner}{/repo}
https://api.github.com/users/brando90/subscriptions
User
https://api.github.com/users/brando90
public
COLLABORATOR
Feel free to work on this. In addition, `IterableDataset` supports `skip`, so we should also add this method to `Dataset`.
2023-08-17T13:48:50Z
https://github.com/huggingface/datasets/issues/6150#issuecomment-1682321862
https://api.github.com/repos/huggingface/datasets/issues/6150
IC_kwDODunzps5kRjHG
https://api.github.com/repos/huggingface/datasets/issues/comments/1682321862/reactions
2023-08-17T13:49:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1682321862
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
### Feature request

I want to do:
```
dataset.take(512)
```

but it only works with streaming = True

### Motivation

uniform interface to data sets. Really surprising the above only works with streaming = True. 

### Your contribution

Should be trivial to copy paste the IterableDataset .take to use the local path in the data (when streaming = False)