



from ..utils import DummyObject, requires_backends



class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[int]				,				*A_     :       List[str]				,				**A_     :       List[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       str				,				**A_     :       Any):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Union[str, Any]				,				*A_     :       Union[str, Any]				,				**A_     :       Dict):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[int]				,				*A_     :       Tuple				,				**A_     :       Tuple):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       int				,				*A_     :       Optional[int]				,				**A_     :       int):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       List[str]				,				**A_     :       List[str]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       List[Any]				,				**A_     :       str):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[str]				,				*A_     :       List[str]				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[str]				,				*A_     :       Optional[int]				,				**A_     :       Any):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       int				,				*A_     :       Dict				,				**A_     :       int):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Tuple				,				*A_     :       List[Any]				,				**A_     :       Optional[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[str]				,				*A_     :       int				,				**A_     :       Tuple):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       Optional[int]				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Union[str, Any]				,				*A_     :       Union[str, Any]				,				**A_     :       List[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[int]				,				*A_     :       Tuple				,				**A_     :       Tuple):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[int]				,				*A_     :       Dict				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[Any]				,				*A_     :       Tuple				,				**A_     :       List[str]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Union[str, Any]				,				*A_     :       Optional[int]				,				**A_     :       Optional[int]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       List[Any]				,				**A_     :       str):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[Any]				,				*A_     :       List[Any]				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       str				,				*A_     :       Optional[int]				,				**A_     :       List[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[str]				,				*A_     :       List[Any]				,				**A_     :       Optional[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       str				,				*A_     :       Optional[int]				,				**A_     :       Dict):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       int				,				*A_     :       int				,				**A_     :       Optional[int]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       List[Any]				,				*A_     :       List[str]				,				**A_     :       Tuple):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Union[str, Any]				,				*A_     :       Any				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Dict				,				*A_     :       List[str]				,				**A_     :       List[str]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       str				,				*A_     :       List[Any]				,				**A_     :       Optional[Any]):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Tuple				,				*A_     :       Optional[Any]				,				**A_     :       int):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Optional[Any]				,				*A_     :       Optional[Any]				,				**A_     :       Dict):
									requires_backends(self				,				['''sentencepiece'''])





class 				__snake_case						(     metaclass=UpperCamelCase_						):
							_a			      = ['''sentencepiece''']




							def __init__(       self     :       Tuple				,				*A_     :       Optional[int]				,				**A_     :       Union[str, Any]):
									requires_backends(self				,				['''sentencepiece'''])








from PIL import Image





def 					__lowerCamelCase	( UpperCamelCase__   ,							UpperCamelCase__      ):







							'''simple docstring'''






							snake_case_							=    (259 * (level + 255)) / (255 * (259 - level))

							def contrast(UpperCamelCase__      ) -> int:
														return int(128 + factor * (c - 128)      )

							return img.point(UpperCamelCase__      )


if __name__ == "__main__":
					# Load image
					with Image.open("""image_data/lena.jpg""") as img:
										# Change contrast to 170
										_UpperCAmelCase		:   Tuple										=       change_contrast(img, 170)
										cont_img.save("""image_data/lena_high_contrast.png""", format="""png""")




