from pathlib import Path
import tempfile


def get_basetemp() -> Path:
    """Return base temporary directory for tests artifacts."""
    tempdir = Path(tempfile.gettempdir()) / "cardano-node-tests"
    tempdir.mkdir(mode=0o700, exist_ok=True)
    return tempdir