from pathlib import Path
import shutil


def copy_to_tmp(origin: Path, dest: Path) -> Path:
    """
    Copy `origin` to temp `dest`
    """
    shutil.copy(origin.as_posix(), dest.as_posix())

    return dest / origin.name