






import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


a_		:    List[Any]   							=     logging.get_logger(__name__)

class 		_snake_case	(	A__       ):






			def __init__(							self		,       *a		,       **a)   ->							None:
						warnings.warn(
						    'The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
						    ' Please use ChineseCLIPImageProcessor instead.'		,       a		,       )
						super().__init__(*a		,       **a)









"""simple docstring"""







import requests

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							str     ,		lowerCamelCase_:							str ):
						"""simple docstring"""






						snake_case   :			List[str]						    = {"Content-Type": "application/json"}
						snake_case   :			int						    = requests.post(lowerCamelCase_     ,		json={"text": message_body}     ,		headers=lowerCamelCase_ )
						if response.status_code != 2_0_0:
												snake_case   :			str						    = (
												    "Request to slack returned an error "
												    f'''{response.status_code}, the response is:\n{response.text}'''
												)
												raise ValueError(lowerCamelCase_ )


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



