


'''simple docstring'''






import importlib.metadata
import subprocess
import sys


def 					_snake_case   (     A = False       )						->    Dict:
							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(A ,    check=A       )
														# 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(A ,    check=A       )
							else:
														raise RuntimeError('''`install_xla` utility works only on google colab.'''       )



'''simple docstring'''






import warnings

from ...utils import logging
from .image_processing_mobilenet_va import MobileNetVaImageProcessor


__UpperCAmelCase    				=							logging.get_logger(__name__)




class 		a__				(							a__  ):





							'''simple docstring'''






							def __init__(		self					,    *lowerCamelCase_					,    **lowerCamelCase_   )       ->							None:
														warnings.warn(
														    '''The class MobileNetV2FeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
														    ''' Please use MobileNetV2ImageProcessor instead.'''					,    lowerCamelCase_					,    )
														super().__init__(*lowerCamelCase_					,    **lowerCamelCase_   )