
'''simple docstring'''


from ..utils import DummyObject, requires_backends




class      __UpperCamelCase       (metaclass=_UpperCAmelCase			):
	__A			  =					['''torch''', '''torchsde''']







	def __init__(    self ,				*_lowerCAmelCase ,				**_lowerCAmelCase						)    ->    str:
							'''simple docstring'''






							requires_backends(self ,				["""torch""", """torchsde"""]						)







	@classmethod
	def   _a   (    cls ,				*_lowerCAmelCase ,				**_lowerCAmelCase						)    ->    List[Any]:
							'''simple docstring'''






							requires_backends(cls ,				["""torch""", """torchsde"""]						)







	@classmethod
	def   _a   (    cls ,				*_lowerCAmelCase ,				**_lowerCAmelCase						)    ->    str:
							'''simple docstring'''






							requires_backends(cls ,				["""torch""", """torchsde"""]						)







'''simple docstring'''


import requests







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      str ,  lowercase_    :      str						):
						lowercase        =							{"""Content-Type""": """application/json"""}
						lowercase        =							requests.post(lowercase_ ,  json={"""text""": message_body} ,  headers=lowercase_						)
						if response.status_code != 200:
												lowercase        =							(
												    """Request to slack returned an error """
												    F"""{response.status_code}, the response is:\n{response.text}"""
												)
												raise ValueError(lowercase_						)


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


