

"""simple docstring"""




import requests
def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase      ):
 '''simple docstring'''





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








"""simple docstring"""




from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCAmelCase =				logging.get_logger(__name__)







class      __lowercase			(    __lowerCamelCase					):
  snake_case_				       =       """timm_backbone"""

  def __init__(  self		:			List[str]					,A		:			Any=None					,A		:			List[Any]=3					,A		:			Any=True					,A		:			Union[str, Any]=True					,A		:			List[Any]=None					,**A		:			Optional[int]					,):






   '''simple docstring'''
   super().__init__(**A    )
   UpperCAmelCase__					:  Optional[int]					   =					backbone
   UpperCAmelCase__					:  Dict					   =					num_channels
   UpperCAmelCase__					:  Optional[int]					   =					features_only
   UpperCAmelCase__					:  Tuple					   =					use_pretrained_backbone
   UpperCAmelCase__					:  str					   =					True
   UpperCAmelCase__					:  List[str]					   =					out_indices if out_indices is not None else (-1,)





