def save_data(data, labels, path):
    """
    Save images and labels.
    
    The variables 'data' and 'labels' refer to the processed images and labels.
    
    The string 'path' corresponds to the path where the images and labels will
    be saved.
    """
    
    # Number of images.
    n_data = len(data)
    
    # Count number of digits in n_data. This is important for the number
    # of leading zeros in the name of the images and labels.
    n_digits = len(str(n_data))
    
    # These represent the paths for the final label and images with the right
    # number of leading zeros given by n_digits.
    direc_d = path + "image/{b:0" + str(n_digits) + "d}.png"
    direc_l = path + "label/{b:0" + str(n_digits) + "d}.png"
    
    # Saves data and labels in the right folder.
    for i in range(len(data)):
        data[i].save(direc_d.format(b=i))
        labels[i].save(direc_l.format(b=i))
        
    return None