Make DuplicateKeysError more user friendly [For Issue #2556]
{'login': 'VijayKalmath', 'id': 20517962, 'node_id': 'MDQ6VXNlcjIwNTE3OTYy', 'avatar_url': 'https://avatars.githubusercontent.com/u/20517962?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/VijayKalmath', 'html_url': 'https://github.com/VijayKalmath', 'followers_url': 'https://api.github.com/users/VijayKalmath/followers', 'following_url': 'https://api.github.com/users/VijayKalmath/following{/other_user}', 'gists_url': 'https://api.github.com/users/VijayKalmath/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/VijayKalmath/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/VijayKalmath/subscriptions', 'organizations_url': 'https://api.github.com/users/VijayKalmath/orgs', 'repos_url': 'https://api.github.com/users/VijayKalmath/repos', 'events_url': 'https://api.github.com/users/VijayKalmath/events{/privacy}', 'received_events_url': 'https://api.github.com/users/VijayKalmath/received_events', 'type': 'User', 'site_admin': False}
[]
[]
> Nice thanks !
> 
> After your changes feel free to mark this PR as "ready for review" ;)

Marking PR ready for review.

@lhoestq Let me know if there is anything else required or if we are good to go ahead and merge. _The documentation is not available anymore as the PR was closed or merged._
# What does this PR do?

## Summary

*DuplicateKeysError error does not provide any information regarding the examples which have the same the key.*

*This information is very helpful for debugging the dataset generator script.*

## Additions
-

## Changes
- Changed `DuplicateKeysError Class` in `src/datasets/keyhash.py` to add current index and duplicate_key_indices to error message.
- Changed `check_duplicate_keys` function in `src/datasets/arrow_writer.py` to find indices of examples with duplicate hash if duplicate keys are found.

## Deletions
-

## To do  : 
- [x] Find way to find and print path `<Path to Dataset>` in Error message 

## Issues Addressed : 

Fixes #2556  
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4545/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/4545', 'html_url': 'https://github.com/huggingface/datasets/pull/4545', 'diff_url': 'https://github.com/huggingface/datasets/pull/4545.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/4545.patch', 'merged_at': '2022-06-28T09:26:04Z'}