

SCREAMING_SNAKE_CASE__     :    int      							=					{hex(i)[2:]: i for i in range(16)}  # Use [:2] to strip off the leading '0x'




def 				__magic_name__				(     __lowerCAmelCase			:		Optional[Any]							)    ->     int:
				__lowerCamelCase					      =			hex_string.strip().lower()
				if not hex_string:
								raise ValueError('''Empty string was passed to the function'''							)
				__lowerCamelCase					      =			hex_string[0] == '''-'''
				if is_negative:
								__lowerCamelCase					      =			hex_string[1:]
				if not all(char in hex_table for char in hex_string							):
								raise ValueError('''Non-hexadecimal value was passed to the function'''							)
				__lowerCamelCase					      =			0
				for char in hex_string:
								__lowerCamelCase					      =			16 * decimal_number + hex_table[char]
				return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
					from doctest import testmod

					testmod()





from ..utils import requires_backends


SCREAMING_SNAKE_CASE__     :    Union[str, Any]      							=					None

class      lowerCAmelCase__  :






		def __init__(	self	:							int							,    *SCREAMING_SNAKE_CASE__	:							Dict							,    **SCREAMING_SNAKE_CASE__	:							Tuple						)  ->							Optional[Any]:
						requires_backends(self							,    ['''detectron2''']						)







		@classmethod
		def 				__A (	cls	:							Dict							,    *SCREAMING_SNAKE_CASE__	:							Dict							,    **SCREAMING_SNAKE_CASE__	:							Tuple						)  ->							Tuple:
						requires_backends(cls							,    ['''detectron2''']						)



