def analysis_dir(tmp_path_factory):
    """
    Creates and returns analysis directory
    """
    analysis_dir = tmp_path_factory.mktemp("analysis", numbered=False)

    return analysis_dir.as_posix()