





import requests




def     __UpperCamelCase						(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	)       ->     None:
  lowercase__			    =						{'Content-Type': 'application/json'}
  lowercase__			    =						requests.post(__snake_case	,		json={'text': message_body}	,		headers=__snake_case	)
  if response.status_code != 200:
    lowercase__			    =						(
        'Request to slack returned an error '
        F"""{response.status_code}, the response is:\n{response.text}"""
    )
    raise ValueError(__snake_case	)


if __name__ == "__main__":
     # Set the slack url to the one provided by Slack when you create the webhook at
     # https://my.slack.com/services/new/incoming-webhook/
     send_slack_message("""<YOUR MESSAGE BODY>""", """<SLACK CHANNEL URL>""")









from PIL import Image




def     __UpperCamelCase						(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	)       ->     Image:

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

  if not -2_5_5.0 <= level <= 2_5_5.0:
    raise ValueError('level must be between -255.0 (black) and 255.0 (white)'	)
  return img.point(_SCREAMING_SNAKE_CASE	)


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


