Fix metadata validation
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_4390). All of your documentation changes will be reflected on that endpoint.
Since Python 3.8, the typing module:
- raises an AttributeError when trying to access `__args__` on any type, e.g.: `List.__args__`
- provides the `get_args` function instead: `get_args(List)`

This PR implements a fix for Python >=3.8 whereas maintaining backward compatibility.