def METHOD_NAME():
    temp_path = app_dirs.TEMP_DIR.joinpath(uuid4().hex + ext)
    temp_path.touch()
    with tempfile.NamedTemporaryFile(mode="w+b", suffix=ext) as f:
        try:
            yield f
        finally:
            temp_path.unlink(missing_ok=True)