"""simple docstring"""




def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: str    ,_lowerCamelCase		: list[str]			) ->   str:
  _lowerCAmelCase		: List[str]						    =  """"""
  for word_or_phrase in separated:
    if not isinstance(_lowerCamelCase    ,_lowerCamelCase			):
      raise Exception("""join() accepts only strings to be joined"""			)
    joined += word_or_phrase + separator
  return joined.strip(_lowerCamelCase			)


if __name__ == "__main__":
     from doctest import testmod

     testmod()





"""simple docstring"""




from PIL import Image





def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: Image    ,_lowerCamelCase		: int			) ->   Image:
  _lowerCAmelCase		: Any						    =  (259 * (level + 255)) / (255 * (259 - level))

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

  return img.point(_lowerCamelCase			)


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




