
def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						int       ) ->       int:

				"""simple docstring"""







				A__  :	Optional[int]         =							abs(__UpperCamelCase       )
				A__  :	int         =							0
				while n > 0:
								res += n % 10
								n //= 10
				return res

def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						int       ) ->       int:

				"""simple docstring"""







				A__  :	int         =							abs(__UpperCamelCase       )
				return n if n < 10 else n % 10 + sum_of_digits(n // 10       )

def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						int       ) ->       int:

				"""simple docstring"""







				return sum(int(__UpperCamelCase       ) for c in str(abs(__UpperCamelCase       )       )       )

def 				SCREAMING_SNAKE_CASE     (      ) ->       None:

				"""simple docstring"""







				from collections.abc import Callable
				from timeit import timeit

				def benchmark_a_function(__UpperCamelCase :						Callable							,						__UpperCamelCase :						int       ) -> None:
								A__  :	Dict         =							F"{func.__name__}({value})"
								A__  :	Any         =							timeit(F"__main__.{call}"							,						setup='''import __main__'''       )
								print(F"{call:56} = {func(__UpperCamelCase       )} -- {timing:.4f} seconds"       )

				for value in (26_21_44, 11_25_89_99_06_84_26_24, 1_26_76_50_60_02_28_22_94_01_49_67_03_20_53_76):
								for func in (sum_of_digits, sum_of_digits_recursion, sum_of_digits_compact):
												benchmark_a_function(__UpperCamelCase							,						__UpperCamelCase       )
								print()


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					benchmark()

from PIL import Image

def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						Image							,						__UpperCamelCase :						float       ) ->       Image:

				"""simple docstring"""







				def brightness(__UpperCamelCase :						int       ) -> float:
								return 1_28 + level + (c - 1_28)

				if not -2_5_5.0 <= level <= 2_5_5.0:
								raise ValueError('''level must be between -255.0 (black) and 255.0 (white)'''       )
				return img.point(__UpperCamelCase       )


if __name__ == "__main__":
					# Load image
					with Image.open('image_data/lena.jpg') as img:
										# Change brightness to 100
										_SCREAMING_SNAKE_CASE    :      Dict          =			change_brightness(img, 1_0_0)
										brigt_img.save('image_data/lena_brightness.png', format='png')