Whoever carries or causes to be carried in or upon any vehicle or otherwise any domestic animal in a cruel or inhuman manner, or knowingly and willfully authorizes or permits it to be subjected to unnecessary torture, suffering, or cruelty of any kind, is guilty of a misdemeanor; and whenever any such person is taken into custody therefor by any officer, such officer must take charge of such vehicle and its contents, together with the horse or team attached to such vehicle, and deposit the same in some place of custody; and any necessary expense incurred for taking care of and keeping the same, is a lien thereon, to be paid before the same can be lawfully recovered; and if such expense, or any part thereof, remains unpaid, it may be recovered, by the person incurring the same, of the owner of such domestic animal, in an action therefor.
Ca. Pen. Code § 597a