import random


def __positive_pair(data_dict: dict, person: str):
    """
    Function to make a positive pair for the person 
    given
    
    Arguments:
        data_dict {dict} -- The data dictionary of the entire dataset
        person {str} -- The person to query and make a positive pair
    
    Returns:
        {tuple} -- The data tuple of (sample1 path, sample2 path, 1)
    """
    index_no = list(data_dict[person].keys())
    random.shuffle(index_no)
    img_list1 = data_dict[person][index_no[-1]]
    img_list2 = data_dict[person][index_no[-2]]
    random.shuffle(img_list1)
    random.shuffle(img_list2)
    p1 = img_list1[-1]
    p2 = img_list2[-1]
    return (p1, p2, 1)