question: If both images contain one dog that is attached the a leash.
#1 return dog 
#2 return leash 
#3 return #1 that is attached to  #2 
#4 return images 
#5 return number of  #3 for each  #4 
#6 return #4 where  #5 is equal to  one 
#7 return number of  #6 
#8 return if  #7 is equal to  two