def path2yaml(tmp_path_factory):
    """Initiate a path to a yaml file.

    Args:
        tmp_path_factory (TempPathFactory): pytest tool to initiate
            temporary a path.

    Returns:
        str: initated path.
    """
    return str(
        tmp_path_factory.mktemp("tmp", numbered=False) / ".history.yaml"
    )