Code for an AI agent to solve Raven's Progressive Matrices using visual data.