def get_image_labels_mapping(images_fp, labels_fp):
    """creates a filename map between images and labels
    In the case where image filenames have different filename 
    pattern than label filenames, this function creates a map
    between the corresponding images and labels
    
    Args:
        images_fp ([FilePattern object]): filepattern object for images
        labels_fp ([FilePattern object]): filepattern object for labels

    Returns:
        dict: dictionary containing mapping b/w image & label names
    """
    name_map = {}

    for f in images_fp():
        image_name = f[0]['file']
        vars = {k.upper():v for k,v in f[0].items() if k!='file' }
        label_name = labels_fp.get_matching(**vars)[0]['file']
        name_map[image_name] = label_name
    return name_map