from pathlib import Path


def setup_data_path(base_path):
    """ Ensure filesystem path for the data exists."""

    _dpath = Path.joinpath(Path(base_path), "data")
    _dpath.mkdir(parents=True, exist_ok=True)
    return _dpath