


import requests





def   _UpperCAmelCase       (     UpperCAmelCase      :			str						,	UpperCAmelCase      :			str      ):
      """simple docstring"""




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







from typing import Any





def   _UpperCAmelCase       (     UpperCAmelCase      :			list      ):
      """simple docstring"""




      if not input_list:
            return []
      __lowerCamelCase     :      int       						=						[input_list.count(UpperCAmelCase      ) for value in input_list]
      __lowerCamelCase     :      Tuple       						=						max(UpperCAmelCase      )  # Gets the maximum count in the input list.
      # Gets values of modes
      return sorted({input_list[i] for i, value in enumerate(UpperCAmelCase      ) if value == y}      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()



