It shall be unlawful for anyone to knowingly abandon or to aid in the abandonment of any animal. An animal relinquished through written agreement with animal control, a licensed rescue group, licensed shelter, licensed veterinarian, individual, or other entity shall not be deemed abandoned but shall be considered relinquished to the entity.