Get a dictionary that maps indices to LaTeX commands.

    Parameters
    ----------
    model_description : string
        A model description file that points to a feature folder where an
        `index2formula_id.csv` has to be.

    Returns
    -------
    dictionary :
        Maps indices to LaTeX commands

def get_index2latex(model_description):
    """
    Get a dictionary that maps indices to LaTeX commands.

    Parameters
    ----------
    model_description : string
        A model description file that points to a feature folder where an
        `index2formula_id.csv` has to be.

    Returns
    -------
    dictionary :
        Maps indices to LaTeX commands
    """
    index2latex = {}
    translation_csv = os.path.join(get_project_root(),
                                   model_description["data-source"],
                                   "index2formula_id.csv")
    with open(translation_csv) as csvfile:
        csvreader = csv.DictReader(csvfile, delimiter=',', quotechar='"')
        for row in csvreader:
            index2latex[int(row['index'])] = row['latex']
    return index2latex