

def 					__lowerCamelCase	( UpperCamelCase__      ):







							'''simple docstring'''






							if not isinstance(UpperCamelCase__   ,							UpperCamelCase__      ):
														raise TypeError('only integers accepted as input'      )
							else:
														snake_case_							=    str(abs(UpperCamelCase__      )      )
														snake_case_							=    [list(UpperCamelCase__      ) for char in range(len(UpperCamelCase__      )      )]
														for index in range(len(UpperCamelCase__      )      ):
																					num_transpositions[index].pop(UpperCamelCase__      )
														return max(
														    int(''.join(list(UpperCamelCase__      )      )      ) for transposition in num_transpositions      )


if __name__ == "__main__":
					__import__("""doctest""").testmod()







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




