def get_name_by_index(index, labels):
    """get name with acv for index

    Args:
        index ([int]): [index/labelcode]
        labels ([dict]): [labels]

    Returns:
        [String]: [name (acv)]
    """
    name = ""
    acv = ""
    for x in labels:
        if (x.get('labelcode')==index):
            name = x.get('name')
            acv = x.get('acv')

    if (name==""):
        print(f"no matching name for {index}")
        return "X"
    else:
        return (name + " (" + acv + ")")