"""simple docstring"""


import importlib.metadata
import subprocess
import sys





def 			lowerCamelCase_ (					__lowerCAmelCase = False				)							->					int:




						'''simple docstring'''



						lowerCamelCase__					=False
						if "IPython" in sys.modules:
												lowerCamelCase__					="google.colab" in str(sys.modules["IPython"].get_ipython()				)

						if in_colab:
												if upgrade:
																		lowerCamelCase__					=["pip", "install", "-U", "torch"]
																		subprocess.run(__lowerCAmelCase   ,    check=__lowerCAmelCase				)
												# get the current version of torch
												lowerCamelCase__					=importlib.metadata.version("torch"				)
												lowerCamelCase__					=torch_version[: torch_version.rindex("."				)]
												lowerCamelCase__					=F'''https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl'''
												lowerCamelCase__					=["pip", "install", xla_wheel]
												subprocess.run(__lowerCAmelCase   ,    check=__lowerCAmelCase				)
						else:
												raise RuntimeError("`install_xla` utility works only on google colab."				)







"""simple docstring"""
import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


__SCREAMING_SNAKE_CASE     :  Union[str, Any]										=					logging.get_logger(__name__)


class 							lowerCamelCase_(      A__			):





					'''simple docstring'''



					def __init__(			self ,				*lowerCamelCase__ ,				**lowerCamelCase__      ):
									warnings.warn(
									    '''The class LayoutLMv3FeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
									    ''' Please use LayoutLMv3ImageProcessor instead.''' ,				lowerCamelCase__ ,				)
									super().__init__(*lowerCamelCase__ ,				**lowerCamelCase__      )
