
from ..utils import DummyObject, requires_backends







class  UpperCamelCase__		(    metaclass=SCREAMING_SNAKE_CASE_   ):







	'''simple docstring'''
	_lowerCAmelCase							       =				["speech"]





	def __init__(			self				,       *UpperCamelCase__				,       **UpperCamelCase__		):
					requires_backends(self				,       ['''speech''']		)







class  UpperCamelCase__		(    metaclass=SCREAMING_SNAKE_CASE_   ):







	'''simple docstring'''
	_lowerCAmelCase							       =				["speech"]





	def __init__(			self				,       *UpperCamelCase__				,       **UpperCamelCase__		):
					requires_backends(self				,       ['''speech''']		)

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')