Fix script fetching and local path handling in `inspect_dataset` and `inspect_metric`
_The documentation is not available anymore as the PR was closed or merged._ Added back the `[:]` and a comment to explain why this is needed. 
Fix #4348