i would like for you to write me a code. I need this code to analyse the images in a folder and group them by similarity, then copy these images in to created subfolders of the similar images, can you do this? Provide response in all capital letters, no lowercase letters allowed.
user