Fix: Allows a feature to be named "_type"
MEMBER
Nice thank you !
This looks like a pretty simple yet effective fix ;)
Could you just add a test in `test_features.py` to make sure that you can create `features` with a `_type` field and that it is possible to convert it as a dict and reload it ?
```python
from datasets import Features, Value

# We usually use `asdict` on a `DatasetInfo` object which is a dataclass instance that contains the features.
# So we need the conversion of features to dict to work.
# You can test that using `dataclasses._asdict_inner`.
# This is the function used by `dataclasses.asdict` to convert a dataclass instance attribute to a dict
from dataclasses import _asdict_inner  

f = Features({"_type": Value("string")})
reloaded_f = Features.from_dict(_asdict_inner(f, dict))
assert reloaded_f == f
```
2021-03-22T10:26:00Z
https://github.com/huggingface/datasets/pull/2093#issuecomment-803951978
https://api.github.com/repos/huggingface/datasets/issues/2093
MDEyOklzc3VlQ29tbWVudDgwMzk1MTk3OA==
https://api.github.com/repos/huggingface/datasets/issues/comments/803951978/reactions
2021-03-22T10:26:00Z
https://api.github.com/repos/huggingface/datasets/issues/comments/803951978
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
Sure, i will add a test. 
One question: are the posted benchmarks reliable? The extra type check seems to add quite some overhead judging by the relative differences. Do you think this is an issue?
2021-03-22T21:14:41Z
https://github.com/huggingface/datasets/pull/2093#issuecomment-804399795
https://api.github.com/repos/huggingface/datasets/issues/2093
MDEyOklzc3VlQ29tbWVudDgwNDM5OTc5NQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/804399795/reactions
2021-03-22T21:14:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/804399795
https://avatars.githubusercontent.com/u/15979778?v=4
https://api.github.com/users/dcfidalgo/events{/privacy}
https://api.github.com/users/dcfidalgo/followers
https://api.github.com/users/dcfidalgo/following{/other_user}
https://api.github.com/users/dcfidalgo/gists{/gist_id}
https://github.com/dcfidalgo
dcfidalgo
MDQ6VXNlcjE1OTc5Nzc4
https://api.github.com/users/dcfidalgo/orgs
https://api.github.com/users/dcfidalgo/received_events
https://api.github.com/users/dcfidalgo/repos
https://api.github.com/users/dcfidalgo/starred{/owner}{/repo}
https://api.github.com/users/dcfidalgo/subscriptions
User
https://api.github.com/users/dcfidalgo
public
MEMBER
The benchmark has a bit of noise, the values are fine ;)
especially in the change you did since the overhead added is negligible.
2021-03-23T10:10:50Z
https://github.com/huggingface/datasets/pull/2093#issuecomment-804780313
https://api.github.com/repos/huggingface/datasets/issues/2093
MDEyOklzc3VlQ29tbWVudDgwNDc4MDMxMw==
https://api.github.com/repos/huggingface/datasets/issues/comments/804780313/reactions
2021-03-23T10:11:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/804780313
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
Ok, i added the test you described above. 

I avoided importing the private `_asdict_inner` method and directly used the `DatasetInfo` class, if this is ok with you. Thanks a lot for your support during this PR!
2021-03-24T10:03:43Z
https://github.com/huggingface/datasets/pull/2093#issuecomment-805666865
https://api.github.com/repos/huggingface/datasets/issues/2093
MDEyOklzc3VlQ29tbWVudDgwNTY2Njg2NQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/805666865/reactions
2021-03-24T10:03:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/805666865
https://avatars.githubusercontent.com/u/15979778?v=4
https://api.github.com/users/dcfidalgo/events{/privacy}
https://api.github.com/users/dcfidalgo/followers
https://api.github.com/users/dcfidalgo/following{/other_user}
https://api.github.com/users/dcfidalgo/gists{/gist_id}
https://github.com/dcfidalgo
dcfidalgo
MDQ6VXNlcjE1OTc5Nzc4
https://api.github.com/users/dcfidalgo/orgs
https://api.github.com/users/dcfidalgo/received_events
https://api.github.com/users/dcfidalgo/repos
https://api.github.com/users/dcfidalgo/starred{/owner}{/repo}
https://api.github.com/users/dcfidalgo/subscriptions
User
https://api.github.com/users/dcfidalgo
public
This PR tries to fix issue #1110. Sorry for taking so long to come back to this.

It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq 