






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

def   SCREAMING_SNAKE_CASE_				(				__magic_name__   :    str   )						->     int:






	"""simple docstring"""



	UpperCamelCase	:int		=      hex_string.strip().lower()
	if not hex_string:
		raise ValueError("""Empty string was passed to the function"""   )
	UpperCamelCase	:Any		=      hex_string[0] == '''-'''
	if is_negative:
		UpperCamelCase	:Any		=      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"""   )
	UpperCamelCase	:Union[str, Any]		=      0
	for char in hex_string:
		UpperCamelCase	:int		=      16 * decimal_number + hex_table[char]
	return -decimal_number if is_negative else decimal_number


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

	testmod()








'''simple docstring'''







import re






def  lowerCAmelCase__		(					a_  :     Optional[int]			)   -> Optional[Any]:
       def docstring_decorator(a_  :     Dict			):
              UpperCAmelCase__	:   Optional[int]												=	fn.__doc__
              UpperCAmelCase__	:   Dict												=	func_doc.split('''\n'''			)
              UpperCAmelCase__	:   Any												=	0
              while i < len(a_			) and re.search(r'''^\s*Examples?:\s*$'''			,						lines[i]			) is None:
                     i += 1
              if i < len(a_			):
                     UpperCAmelCase__	:   List[Any]												=	example_docstring
                     UpperCAmelCase__	:   int												=	'''\n'''.join(a_			)
              else:
                     raise ValueError(
                         f"""The function {fn} should have an empty 'Examples:' in its docstring as placeholder, """
                         f"""current docstring is:\n{func_doc}"""			)
              UpperCAmelCase__	:   Any												=	func_doc
              return fn

       return docstring_decorator