import glob


def seg_path_from_desc(desc):
    """ Get the path to the segmentation image from its description """
    paths = glob.glob("/tensorflow/data/seg/" + desc["name"] + "*.png")
    assert len(paths) == 1
    return paths[0]