def _get_upload_file(self):
        saved_file = StringIO.StringIO()
        try:
            saved_ref = DownloadBase.get(self.processing_id)
            data = saved_ref.get_content()
        except Exception as e:
            self.mark_with_error(_("Could not fetch cached bulk upload file. Error: %s." % e))
            return

        saved_file.write(data)
        saved_file.seek(0)
        return saved_file
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqmedia/cache.py/BulkMultimediaStatusCache._get_upload_file/original