from pathlib import Path


def make_output_dir(experiment_dir, identifier):
    """Create a directory to write output to."""
    output_dir = Path(experiment_dir, identifier).resolve()
    output_dir.mkdir(parents=True, exist_ok=True)
    return output_dir