Asserts replaced by exceptions (huggingface#3171)
{'login': 'joseporiolayats', 'id': 5772490, 'node_id': 'MDQ6VXNlcjU3NzI0OTA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/5772490?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/joseporiolayats', 'html_url': 'https://github.com/joseporiolayats', 'followers_url': 'https://api.github.com/users/joseporiolayats/followers', 'following_url': 'https://api.github.com/users/joseporiolayats/following{/other_user}', 'gists_url': 'https://api.github.com/users/joseporiolayats/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/joseporiolayats/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/joseporiolayats/subscriptions', 'organizations_url': 'https://api.github.com/users/joseporiolayats/orgs', 'repos_url': 'https://api.github.com/users/joseporiolayats/repos', 'events_url': 'https://api.github.com/users/joseporiolayats/events{/privacy}', 'received_events_url': 'https://api.github.com/users/joseporiolayats/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Your first PR went smoothly, well done!
You are welcome to continue contributing to this project.
Gràcies, @joseporiolayats! 😉 
I've replaced two asserts with their proper exceptions following the guidelines described in issue #3171 by following the contributing guidelines.

PS: This is one of my first PRs, hoping I don't break anything!
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/3174/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/3174', 'html_url': 'https://github.com/huggingface/datasets/pull/3174', 'diff_url': 'https://github.com/huggingface/datasets/pull/3174.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/3174.patch', 'merged_at': '2021-10-29T13:08:43Z'}