question: If there is only one lock in each image.
#1 return images 
#2 return locks in  #1 
#3 return number of  #2 for each  #1 
#4 return #1 where  #3 is equal to  one 
#5 return number of  #4 
#6 return number of  #1 
#7 return if  #5 is equal to  #6