Footage that shows a snake slithering out of an air conditioner to eat a rat went viral on social media.