





import requests




def 	lowerCAmelCase_					(						__UpperCAmelCase:    str	,     __UpperCAmelCase:    str   )   ->			None:
				UpperCamelCase__							:       List[Any]      =   {'''Content-Type''': '''application/json'''}
				UpperCamelCase__							:       List[str]      =   requests.post(__UpperCAmelCase	,     json={'''text''': message_body}	,     headers=__UpperCAmelCase   )
				if response.status_code != 200:
								UpperCamelCase__							:       List[str]      =   (
								    '''Request to slack returned an error '''
								    f"{response.status_code}, the response is:\n{response.text}"
								)
								raise ValueError(__UpperCAmelCase   )


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 typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase_  							=				{
    'configuration_informer': [
        'INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'InformerConfig',
    ],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase_  							=				[
      'INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST',
      'InformerForPrediction',
      'InformerModel',
      'InformerPreTrainedModel',
  ]


if TYPE_CHECKING:
  from .configuration_informer import INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, InformerConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_informer import (
        INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
        InformerForPrediction,
        InformerModel,
        InformerPreTrainedModel,
    )

else:
  import sys

  UpperCAmelCase_  							=				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)

