[`pipeline`] add explicit `ValueError` if you don't pass a valid arg
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_21242). All of your documentation changes will be reflected on that endpoint.