<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def upload_file(token, channel_name, file_name):
 """ upload file to a channel """


    slack = Slacker(token)

    slack.files.upload(file_name, channels=channel_name)