Update metadata if dataset features are modified
{'login': 'mariosasko', 'id': 47462742, 'node_id': 'MDQ6VXNlcjQ3NDYyNzQy', 'avatar_url': 'https://avatars.githubusercontent.com/u/47462742?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mariosasko', 'html_url': 'https://github.com/mariosasko', 'followers_url': 'https://api.github.com/users/mariosasko/followers', 'following_url': 'https://api.github.com/users/mariosasko/following{/other_user}', 'gists_url': 'https://api.github.com/users/mariosasko/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mariosasko/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mariosasko/subscriptions', 'organizations_url': 'https://api.github.com/users/mariosasko/orgs', 'repos_url': 'https://api.github.com/users/mariosasko/repos', 'events_url': 'https://api.github.com/users/mariosasko/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mariosasko/received_events', 'type': 'User', 'site_admin': False}
[]
[]
@lhoestq I'll try to add a test later if you think this approach with the wrapper is good. Awesome thank you !
Yes this approach with a wrapper is good :) @lhoestq Added a test. To verify that this change fixes the problem, replace:
```
!pip install datasets==1.5
```
with:
```
!pip install git+https://github.com/mariosasko/datasets-1.git@update-metadata
```
in the first cell of the notebook that is attached to the linked issue.

The CI failure is unrelated I think (building the docs locally doesn't throw an error). The CI fail for the docs has been fixed on master.
Merging :)
This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. 
Fixes #2083 

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2087/reactions', 'total_count': 2, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 1, 'rocket': 1, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2087', 'html_url': 'https://github.com/huggingface/datasets/pull/2087', 'diff_url': 'https://github.com/huggingface/datasets/pull/2087.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2087.patch', 'merged_at': '2021-04-09T09:25:33Z'}