


import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


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







class        snake_case_   (lowerCamelCase_      ):
					def __init__(      self   :List[Any]			,*__snake_case   :Optional[Any]			,**__snake_case   :Tuple      )					->    List[Any]:
												warnings.warn(
												    'The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
												    ' Please use DeformableDetrImageProcessor instead.'			,__a			,)
												super().__init__(*__a			,**__a      )











'''simple docstring'''







def  _lowerCamelCase				( lowercase						:      bytes						)	->	str:
				return "".join([hex(lowercase						)[2:].zfill(2						).upper() for byte in list(lowercase						)]						)






def  _lowerCamelCase				( lowercase						:      str						)	->	bytes:
				# Check data validity, following RFC3548
				# https://www.ietf.org/rfc/rfc3548.txt
				if (len(lowercase						) % 2) != 0:
								raise ValueError(
								    "Base16 encoded data is invalid:\nData does not have an even number of hex digits."						)
				# Check the character set - the standard base16 alphabet
				# is uppercase according to RFC3548 section 6
				if not set(lowercase						) <= set("0123456789ABCDEF"						):
								raise ValueError(
								    "Base16 encoded data is invalid:\nData is not uppercase hex or it contains invalid characters."						)
				# For every two hexadecimal digits (= a byte), turn it into an integer.
				# Then, string the result together into bytes, and return it.
				return bytes(int(data[i] + data[i + 1]    ,							16						) for i in range(0    ,							len(lowercase						)    ,							2						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
