



import warnings

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


__lowerCamelCase								=   logging.get_logger(__name__)



class 						_snake_case (     lowerCamelCase			):





 """simple docstring"""



 def __init__(  self		,      *a		,      **a   )		->							None:




   """simple docstring"""







   warnings.warn(
       '''The class MobileNetV2FeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
       ''' Please use MobileNetV2ImageProcessor instead.'''		,      a		,      )
   super().__init__(*a		,      **a   )




import importlib.metadata
import subprocess
import sys




def       UpperCAmelCase__	(							__snake_case = False							)				->	List[Any]:
  _A          =      False
  if "IPython" in sys.modules:
    _A          =      '''google.colab''' in str(sys.modules['''IPython'''].get_ipython()							)

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