dataset.to_iterable_dataset() loses useful info like dataset features
MEMBER
Hi ! Oh good catch. I think the features should be passed to `IterableDataset.from_generator()` in `to_iterable_dataset()` indeed.

Setting this as a good first issue if someone would like to contribute, otherwise we can take care of it :)
2023-02-23T13:55:37Z
https://github.com/huggingface/datasets/issues/5568#issuecomment-1441845180
https://api.github.com/repos/huggingface/datasets/issues/5568
IC_kwDODunzps5V8M-8
https://api.github.com/repos/huggingface/datasets/issues/comments/1441845180/reactions
2023-02-23T13:55:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1441845180
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
CONTRIBUTOR
#self-assign
2023-02-23T15:30:32Z
https://github.com/huggingface/datasets/issues/5568#issuecomment-1441982741
https://api.github.com/repos/huggingface/datasets/issues/5568
IC_kwDODunzps5V8ukV
https://api.github.com/repos/huggingface/datasets/issues/comments/1441982741/reactions
2023-02-23T15:30:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1441982741
https://avatars.githubusercontent.com/u/48770768?v=4
https://api.github.com/users/bruno-hays/events{/privacy}
https://api.github.com/users/bruno-hays/followers
https://api.github.com/users/bruno-hays/following{/other_user}
https://api.github.com/users/bruno-hays/gists{/gist_id}
https://github.com/bruno-hays
bruno-hays
MDQ6VXNlcjQ4NzcwNzY4
https://api.github.com/users/bruno-hays/orgs
https://api.github.com/users/bruno-hays/received_events
https://api.github.com/users/bruno-hays/repos
https://api.github.com/users/bruno-hays/starred{/owner}{/repo}
https://api.github.com/users/bruno-hays/subscriptions
User
https://api.github.com/users/bruno-hays
public
NONE
seems like the feature parameter is missing from `return IterableDataset.from_generator(Dataset._iter_shards, gen_kwargs={"shards": shards})`  hence it defaults to None.
2023-02-23T15:36:40Z
https://github.com/huggingface/datasets/issues/5568#issuecomment-1441991703
https://api.github.com/repos/huggingface/datasets/issues/5568
IC_kwDODunzps5V8wwX
https://api.github.com/repos/huggingface/datasets/issues/comments/1441991703/reactions
2023-02-23T15:36:40Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1441991703
https://avatars.githubusercontent.com/u/24626419?v=4
https://api.github.com/users/YellowFoxH4XOR/events{/privacy}
https://api.github.com/users/YellowFoxH4XOR/followers
https://api.github.com/users/YellowFoxH4XOR/following{/other_user}
https://api.github.com/users/YellowFoxH4XOR/gists{/gist_id}
https://github.com/YellowFoxH4XOR
YellowFoxH4XOR
MDQ6VXNlcjI0NjI2NDE5
https://api.github.com/users/YellowFoxH4XOR/orgs
https://api.github.com/users/YellowFoxH4XOR/received_events
https://api.github.com/users/YellowFoxH4XOR/repos
https://api.github.com/users/YellowFoxH4XOR/starred{/owner}{/repo}
https://api.github.com/users/YellowFoxH4XOR/subscriptions
User
https://api.github.com/users/YellowFoxH4XOR
public
### Describe the bug

Hello,
I like the new `to_iterable_dataset` feature but I noticed something that seems to be missing.

When using `to_iterable_dataset` to transform your map style dataset into iterable dataset, you lose valuable metadata like the features. 

These metadata are useful if you want to interleave iterable datasets, cast columns etc.

### Steps to reproduce the bug

```python
dataset = load_dataset("lhoestq/demo1")["train"]
print(dataset.features)
# {'id': Value(dtype='string', id=None), 'package_name': Value(dtype='string', id=None), 'review': Value(dtype='string', id=None), 'date': Value(dtype='string', id=None), 'star': Value(dtype='int64', id=None), 'version_id': Value(dtype='int64', id=None)}
dataset = dataset.to_iterable_dataset()
print(dataset.features)
# None
```

### Expected behavior

Keep the relevant information

### Environment info

datasets==2.10.0