raise exception instead of using assertions.
@mariosasko - Thanks for the review & suggestions. Updated as per the suggestions.  @mariosasko - Hello, Are there any additional changes required from my end??. Wondering if this PR can be merged or still pending on additional steps. @mariosasko - The approved changes in the PR now has conflicts with the master branch. Would you like me to resolve the conflicts??.  Let me know.    @mariosasko @lhoestq - Gentle reminder about my previous question.  Hi ! Thanks for the heads up :)
I just resolved the conflicts, it should be alright now Merging, thanks for the help @manisnesan !
fix for the remaining files https://github.com/huggingface/datasets/issues/3171