def upload_media(self, **params):
<EOL>if params and params.get('<STR_LIT>', '<STR_LIT>') == '<STR_LIT>':<EOL><INDENT>return self.get('<STR_LIT>', params=params)<EOL><DEDENT>return self.post('<STR_LIT>', params=params)<EOL>
Uploads media file to Twitter servers. The file will be available to be attached
        to a status for 60 minutes. To attach to a update, pass a list of returned media ids
        to the :meth:`update_status` method using the ``media_ids`` param.

        Docs:
        https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload