





from ..utils import DummyObject, requires_backends







class   __lowerCAmelCase			(					metaclass=_UpperCamelCase  ):
   _UpperCamelCase :						Dict     		=				["""speech"""]





   def __init__( self					,			*snake_case					,			**snake_case      )				->  Tuple:
      """simple docstring"""





      requires_backends(self					,			["speech"]      )







class   __lowerCAmelCase			(					metaclass=_UpperCamelCase  ):
   _UpperCamelCase :						Dict     		=				["""speech"""]





   def __init__( self					,			*snake_case					,			**snake_case      )				->  Tuple:
      """simple docstring"""





      requires_backends(self					,			["speech"]      )








from PIL import Image






def       _A  (      lowerCamelCase							, lowerCamelCase   ):

   def brightness(lowerCamelCase   ) -> 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(lowerCamelCase   )


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

