
"""simple docstring"""





def 	__a     (		__lowerCamelCase,		__lowerCamelCase = False  ):

   if not isinstance(__lowerCamelCase,		__lowerCamelCase  ):
      UpperCAmelCase_					:					str			     =    f"""Expected string as input, found {type(__lowerCamelCase  )}"""
      raise ValueError(__lowerCamelCase  )
   if not isinstance(__lowerCamelCase,		__lowerCamelCase  ):
      UpperCAmelCase_					:					Any			     =    f"""Expected boolean as use_pascal parameter, found {type(__lowerCamelCase  )}"""
      raise ValueError(__lowerCamelCase  )

   UpperCAmelCase_					:					int			     =    input_str.split("_"  )

   UpperCAmelCase_					:					List[Any]			     =    0 if use_pascal else 1

   UpperCAmelCase_					:					Optional[int]			     =    words[start_index:]

   UpperCAmelCase_					:					Dict			     =    [word[0].upper() + word[1:] for word in words_to_capitalize]

   UpperCAmelCase_					:					Dict			     =    "" if use_pascal else words[0]

   return "".join([initial_word, *capitalized_words]  )


if __name__ == "__main__":
    from doctest import testmod

    testmod()




import requests


def       A       (					lowercase    ,       lowercase )   ->  None:
		'''simple docstring'''

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