The ability to adapt behavior flexibly to changing environments is a hallmark of intelligence. However, the biological ...