def update_profile_image(self, filename, file_=None):
        headers, post_data = API._pack_image(filename, 700, f=file_)
        return bind_api(
            api=self,
            path='/account/update_profile_image.json',
            method='POST',
            payload_type='user',
            allowed_param=['include_entities', 'skip_status'],
            require_auth=True
        )(self, post_data=post_data, headers=headers)
:reference: https://dev.twitter.com/rest/reference/post/account/update_profile_image
dataset/ETHPy150Open tweepy/tweepy/tweepy/api.py/API.update_profile_image