def update_with_media(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:status>',<EOL>allowed_param=[<EOL>'<STR_LIT:status>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'<EOL>],<EOL>require_auth=True<EOL>)(*args, **kwargs)<EOL>
:reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update_with_media
            :allowed_param:'status', 'possibly_sensitive', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'auto_populate_reply_metadata', 'lat', 'long', 'place_id', 'display_coordinates'