passing parameters to the method passed to Dataset.from_generator()
{'login': 'Basir-mahmood', 'id': 64276129, 'node_id': 'MDQ6VXNlcjY0Mjc2MTI5', 'avatar_url': 'https://avatars.githubusercontent.com/u/64276129?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Basir-mahmood', 'html_url': 'https://github.com/Basir-mahmood', 'followers_url': 'https://api.github.com/users/Basir-mahmood/followers', 'following_url': 'https://api.github.com/users/Basir-mahmood/following{/other_user}', 'gists_url': 'https://api.github.com/users/Basir-mahmood/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Basir-mahmood/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Basir-mahmood/subscriptions', 'organizations_url': 'https://api.github.com/users/Basir-mahmood/orgs', 'repos_url': 'https://api.github.com/users/Basir-mahmood/repos', 'events_url': 'https://api.github.com/users/Basir-mahmood/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Basir-mahmood/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
Hi! Yes, you can either use the `gen_kwargs` param in `Dataset.from_generator` (`ds = Dataset.from_generator(gen, gen_kwargs={"param1": val})`) or wrap the generator function with `functools.partial`
(`ds = Dataset.from_generator(functools.partial(gen, param1="val"))`) to pass custom parameters to it.

Big thanks for providing dataset creation via a generator.
I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows. 

```
from datasets import Dataset

def gen(param1):
    for idx in len(custom_dataset):
        yield custom_dataset[idx] + param1

ds = Dataset.from_generator(gen(param1))
```

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5028/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}