

'''simple docstring'''

def       UpperCamelCase(     UpperCAmelCase_	):
 UpperCAmelCase       :	int											= hex_num.strip()
 if not hex_num:
  raise ValueError('No value was passed to the function'	)

 UpperCAmelCase       :	int											= hex_num[0] == '-'
 if is_negative:
  UpperCAmelCase       :	Union[str, Any]											= hex_num[1:]

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

 UpperCAmelCase       :	Dict											= ''
 while int_num > 0:
  UpperCAmelCase       :	Dict											= 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()






import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


_lowerCamelCase       :				Dict       =			logging.get_logger(__name__)




class    SCREAMING_SNAKE_CASE__     (	UpperCAmelCase					):





	'''simple docstring'''



	def __init__(  self	:    Tuple			,  *lowercase	:    Optional[int]			,  **lowercase	:    Any	):


				'''simple docstring'''


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