def METHOD_NAME(package):
    """Download APK."""
    downloaded_file = None
    data = None
    try:
        if not strict_package_check(package) or is_path_traversal(package):
            return None
        logger.info('Attempting to download: %s', package)
        # APKTADA
        data = try_provider(
            package,
            f'{settings.APKTADA}{package}',
            'apktada.com')
        if data:
            return data
        # APKPURE
        data = try_provider(
            package,
            settings.APKPURE.format(package),
            'apkpure.com')
        if data:
            return data
        # APKPLZ
        data = try_provider(
            package,
            f'{settings.APKPLZ}{package}',
            'apkplz.net')
        if data:
            return data
        logger.warning('Unable to find download link for %s', package)
        return None
    except Exception:
        logger.exception('Failed to download the apk')
        return None
    finally:
        if downloaded_file:
            downloaded_file.unlink()