





import requests





def lowerCAmelCase__(__snake_case ,__snake_case							)       ->   None:







	'''simple docstring'''







	lowerCamelCase__              =	{'''Content-Type''': '''application/json'''}
	lowerCamelCase__              =	requests.post(__snake_case ,json={'''text''': message_body} ,headers=__snake_case							)
	if response.status_code != 200:
		lowerCamelCase__              =	(
		    '''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>")










import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


_a						=   logging.get_logger(__name__)






class       __A					(					lowerCAmelCase				):

			'''simple docstring'''







			def __init__(					self ,						*__lowerCAmelCase ,						**__lowerCAmelCase							):



				'''simple docstring'''







				warnings.warn(
				    '''The class SegformerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use SegformerImageProcessor instead.''' ,						__lowerCAmelCase ,						)
				super().__init__(*__lowerCAmelCase ,						**__lowerCAmelCase							)



