def METHOD_NAME(name: str) -> ElfFile:
    Path(name).write_bytes(b"\x7fELF")
    if name.endswith("fake_elf-bad-patchelf"):
        with Path(name).open("ab") as f:
            f.write(b"nointerpreter")
    return ElfFile(path=Path(name))