from pathlib import Path
from zipfile import ZipFile

with ZipFile(Path(__file__).with_name("sample.zip"), "w") as archive:
    archive.writestr("sample.txt", b"Archive sample\n" + b"x" * 2_000_000)
