def media_upload(self, filename, *args, **kwargs):
f = kwargs.pop('<STR_LIT:file>', None)<EOL>headers, post_data = API._pack_image(filename, <NUM_LIT>, form_field='<STR_LIT>', f=f)<EOL>kwargs.update({'<STR_LIT>': headers, '<STR_LIT>': post_data})<EOL>return bind_api(<EOL>api=self,<EOL>path='<STR_LIT>',<EOL>method='<STR_LIT:POST>',<EOL>payload_type='<STR_LIT>',<EOL>allowed_param=[],<EOL>require_auth=True,<EOL>upload_api=True<EOL>)(*args, **kwargs)<EOL>
:reference: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload
            :allowed_param: