def METHOD_NAME(theme, extra_data=None):
    export_link = reverse("misago:admin:themes:export", kwargs={"pk": theme.pk})
    theme_export = MockThemeExport(admin_client.post(export_link))
    data = extra_data or {}
    data["upload"] = theme_export
    admin_client.post(import_link, data)
    return Theme.objects.filter(pk__gt=theme.pk).last()