def METHOD_NAME(zipfile, tmp_dir):
    try:
        ZipFile(zipfile).extractall(tmp_dir)
    except BadZipFile:
        raise ThemeImportError(
            pgettext("admin theme import", "Uploaded ZIP file could not be extracted.")
        )