In *Order of the Phoenix*, Dumbledore uses a small silver instrument that puffs pale green smoke and shows him a snake, to which he then says, "Naturally, naturally, but in essence divided?" It then turns into two snakes. What exactly is the significance of this? And what is the function of the instrument?

This happens right after Harry has a vision of Mr. Weasley being attacked by the snake in the Ministry of Magic.