def imagelabel(path):
    """
    Get label (detph) related to image name from the readme file.

    :param path: absolute path to the readme file (str)
    :return: dictionary of label with the image name for key (dct)
    """
    labels = {}
    with open(path, "r") as f:
        for lines in f:
            name, depth = lines.split("*")
            labels[name] = depth.strip()
    return labels