failed doctests examples for data2vec_text, 5 failed, 2 passed
### System Info

```shell
- `transformers` version: 4.20.0.dev0
- Platform: Linux-5.13.0-41-generic-x86_64-with-glibc2.29
- Python version: 3.8.0
- Huggingface_hub version: 0.6.0
- PyTorch version (GPU?): 1.11.0+cu102 (False)
- Tensorflow version (GPU?): 2.9.0 (False)
- Flax version (CPU?/GPU?/TPU?): 0.4.2 (cpu)
- Jax version: 0.3.6
- JaxLib version: 0.3.5
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```


### Who can help?

@patrickvonplaten 


### Information

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Following the instruction in https://github.com/huggingface/transformers/issues/16292 as listed below:
Make sure to run the doc example doc test locally as described in https://github.com/huggingface/transformers/tree/master/docs#for-python-files

please see attachment for the 
[doctest_data2vec_text_errormsg.txt](https://github.com/huggingface/transformers/files/8721864/doctest_data2vec_text_errormsg.txt)

p.s, for sanity check, I also run the doctest sample for the following:
1. bigbird_pegasus:  all 5 tests passed
2. data2vec_audio in the same folder: 1 failed, 4 passed



### Expected behavior

```shell
all samples in doctests should pass
```

I am closing this ticket as it is part of the doctest task, merged to https://github.com/huggingface/transformers/issues/17338