Model  LayoutLMv3  - error feature_extractor not find pytesseract
### System Info

transformers 4.20.1
tesseract 5.1.0-32-gf36c0
pytesseract 0.3.9 




### Who can help?

_No response_

### 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

Colab 

Install librires

```
!apt -qq update
!add-apt-repository ppa:alex-p/tesseract-ocr-devel -y
!apt -qq install -y tesseract-ocr

!tesseract --version | grep tesseract
!tesseract --list-langs
```

```
>>> tesseract 5.1.0-32-gf36c0
>>> List of available languages in "/usr/share/tesseract-ocr/5/tessdata/" (3):
eng
osd
```


```
from transformers import LayoutLMv3FeatureExtractor
from PIL import Image

image = Image.open("/content/3875.jpg").convert("RGB")
```

error code
```
feature_extractor = LayoutLMv3FeatureExtractor()
encoding = feature_extractor(image, return_tensors="pt")
print(encoding.keys())
dict_keys(['pixel_values', 'words', 'boxes'])
```

Error message
```
NameError                                 Traceback (most recent call last)
[<ipython-input-29-5693feae799a>](https://localhost:8080/#) in <module>()
      1 # option 1: with apply_ocr=True (default)
      2 feature_extractor = LayoutLMv3FeatureExtractor()
----> 3 encoding = feature_extractor(image, return_tensors="pt")
      4 print(encoding.keys())
      5 # dict_keys(['pixel_values', 'words', 'boxes'])

1 frames
[/usr/local/lib/python3.7/dist-packages/transformers/models/layoutlmv3/feature_extraction_layoutlmv3.py](https://localhost:8080/#) in apply_tesseract(image, lang)
     51 
     52     # apply OCR
---> 53     data = pytesseract.image_to_data(image, lang=lang, output_type="dict")
     54     words, left, top, width, height = data["text"], data["left"], data["top"], data["width"], data["height"]
     55 

NameError: name 'pytesseract' is not defined
```






### Expected behavior

not error, OCR  boxes
Hi,

Can you verify that you can do `import pytesseract`? It may be that you need to restart the runtime in Colab.<|||||>> Hi,
> 
> Can you verify that you can do `import pytesseract`? It may be that you need to restart the runtime in Colab.

restart solved the problem