Notwithstanding any provision of this chapter to the contrary, animal services may humanely euthanize any animal impounded in the animal shelter when the animal services veterinarian believes that euthanasia of the animal is necessary to prevent disease or injury to other animals or to humans, the presence or threatened presence of contagious disease, the likelihood of danger or injury to humans or animals, or any other condition.