def METHOD_NAME(self):
    labels = {}
    path = os.path.join(self.cfg.data, self.cfg.label_descriptors)
    with open(path, "r") as ldf:
        for line in ldf:
            if line.strip() == "":
                continue
            items = line.split(",")
            idx = items[0]
            lbl = items[1]
            assert lbl not in labels, lbl
            labels[lbl] = idx
    return labels