



'''simple docstring'''


from PIL import Image







def   SCREAMING_SNAKE_CASE					(					lowercase_     :   Image			,	lowercase_     :   float    ):

						def brightness(lowercase_     :   int    ) -> float:
												return 128 + level + (c - 128)

						if not -255.0 <= level <= 255.0:
												raise ValueError("""level must be between -255.0 (black) and 255.0 (white)"""    )
						return img.point(lowercase_    )


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



A						=			'\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n'

A						=			[{'type': 'code', 'content': INSTALL_CONTENT}]
A						=			{
    '{processor_class}': 'FakeProcessorClass',
    '{model_class}': 'FakeModelClass',
    '{object_class}': 'FakeObjectClass',
}