Error in create a dataset from a Python generator
{'login': 'yangxuhui', 'id': 9004682, 'node_id': 'MDQ6VXNlcjkwMDQ2ODI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9004682?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/yangxuhui', 'html_url': 'https://github.com/yangxuhui', 'followers_url': 'https://api.github.com/users/yangxuhui/followers', 'following_url': 'https://api.github.com/users/yangxuhui/following{/other_user}', 'gists_url': 'https://api.github.com/users/yangxuhui/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/yangxuhui/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/yangxuhui/subscriptions', 'organizations_url': 'https://api.github.com/users/yangxuhui/orgs', 'repos_url': 'https://api.github.com/users/yangxuhui/repos', 'events_url': 'https://api.github.com/users/yangxuhui/events{/privacy}', 'received_events_url': 'https://api.github.com/users/yangxuhui/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}, {'id': 1935892877, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODc3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/good%20first%20issue', 'name': 'good first issue', 'color': '7057ff', 'default': True, 'description': 'Good for newcomers'}, {'id': 4614514401, 'node_id': 'LA_kwDODunzps8AAAABEwvm4Q', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/hacktoberfest', 'name': 'hacktoberfest', 'color': 'DF8D62', 'default': False, 'description': ''}]
{'login': 'riccardobucco', 'id': 9295277, 'node_id': 'MDQ6VXNlcjkyOTUyNzc=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9295277?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/riccardobucco', 'html_url': 'https://github.com/riccardobucco', 'followers_url': 'https://api.github.com/users/riccardobucco/followers', 'following_url': 'https://api.github.com/users/riccardobucco/following{/other_user}', 'gists_url': 'https://api.github.com/users/riccardobucco/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/riccardobucco/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/riccardobucco/subscriptions', 'organizations_url': 'https://api.github.com/users/riccardobucco/orgs', 'repos_url': 'https://api.github.com/users/riccardobucco/repos', 'events_url': 'https://api.github.com/users/riccardobucco/events{/privacy}', 'received_events_url': 'https://api.github.com/users/riccardobucco/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'riccardobucco', 'id': 9295277, 'node_id': 'MDQ6VXNlcjkyOTUyNzc=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9295277?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/riccardobucco', 'html_url': 'https://github.com/riccardobucco', 'followers_url': 'https://api.github.com/users/riccardobucco/followers', 'following_url': 'https://api.github.com/users/riccardobucco/following{/other_user}', 'gists_url': 'https://api.github.com/users/riccardobucco/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/riccardobucco/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/riccardobucco/subscriptions', 'organizations_url': 'https://api.github.com/users/riccardobucco/orgs', 'repos_url': 'https://api.github.com/users/riccardobucco/repos', 'events_url': 'https://api.github.com/users/riccardobucco/events{/privacy}', 'received_events_url': 'https://api.github.com/users/riccardobucco/received_events', 'type': 'User', 'site_admin': False}]
Hi, thanks for reporting! The last line should be `dataset = Dataset.from_generator(my_gen)`. Can I work on this one?
## Describe the bug
In HOW-TO-GUIDES > Load > [Python generator](https://huggingface.co/docs/datasets/v2.5.2/en/loading#python-generator), the code example defines the `my_gen` function, but when creating the dataset, an undefined `my_dict` is passed in.  

```Python
>>> from datasets import Dataset
>>> def my_gen():
...    for i in range(1, 4):
...        yield {"a": i}
>>> dataset = Dataset.from_generator(my_dict)
```
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5102/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}