A person who is convicted of sodomy is guilty of a felony and is subject to imprisonment not exceeding 10 years.