





import warnings

from ...utils import logging
from .image_processing_deit import DeiTImageProcessor


_UpperCAmelCase				:       Optional[int]	   =				logging.get_logger(__name__)

class    lowerCAmelCase							(					__UpperCamelCase			):
 def __init__(      self  :      Optional[Any]			,     *UpperCAmelCase  :      Any			,     **UpperCAmelCase  :      int	)			->	None:
     warnings.warn(
         'The class DeiTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
         ' use DeiTImageProcessor instead.'			,     UpperCAmelCase			,     )
     super().__init__(*UpperCAmelCase			,     **UpperCAmelCase	)







def        a_		(       __lowercase   :	str ) ->  int:
			_snake_case		=			hex_num.strip()
			if not hex_num:
						raise ValueError('No value was passed to the function' )

			_snake_case		=			hex_num[0] == '-'
			if is_negative:
						_snake_case		=			hex_num[1:]

			try:
						_snake_case		=			int(__lowercase       ,					16 )
			except ValueError:
						raise ValueError('Invalid value was passed to the function' )

			_snake_case		=			''
			while int_num > 0:
						_snake_case		=			str(int_num % 2 ) + bin_str
						int_num >>= 1

			return int(('-' + bin_str) if is_negative else bin_str )


if __name__ == "__main__":
			import doctest

			doctest.testmod()