added from_generator method to IterableDataset class.
{'login': 'hamid-vakilzadeh', 'id': 56002455, 'node_id': 'MDQ6VXNlcjU2MDAyNDU1', 'avatar_url': 'https://avatars.githubusercontent.com/u/56002455?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/hamid-vakilzadeh', 'html_url': 'https://github.com/hamid-vakilzadeh', 'followers_url': 'https://api.github.com/users/hamid-vakilzadeh/followers', 'following_url': 'https://api.github.com/users/hamid-vakilzadeh/following{/other_user}', 'gists_url': 'https://api.github.com/users/hamid-vakilzadeh/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/hamid-vakilzadeh/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/hamid-vakilzadeh/subscriptions', 'organizations_url': 'https://api.github.com/users/hamid-vakilzadeh/orgs', 'repos_url': 'https://api.github.com/users/hamid-vakilzadeh/repos', 'events_url': 'https://api.github.com/users/hamid-vakilzadeh/events{/privacy}', 'received_events_url': 'https://api.github.com/users/hamid-vakilzadeh/received_events', 'type': 'User', 'site_admin': False}
[]
[]
_The documentation is not available anymore as the PR was closed or merged._ I added a test and moved the `streaming` param from `read` to `__init_`. Then, I also decided to update the `read` method of the rest of the packaged modules to account for this param. 

@hamid-vakilzadeh Are you OK with these changes?  @mariosasko these all look great! Thanks for the updates.
Hello, 

This resolves issues #4988.

I added a method `from_generator` to class `IterableDataset`.

I modified the `read` method of input stream generator to also return Iterable_dataset.

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5052/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/5052', 'html_url': 'https://github.com/huggingface/datasets/pull/5052', 'diff_url': 'https://github.com/huggingface/datasets/pull/5052.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/5052.patch', 'merged_at': '2022-10-05T12:10:48Z'}