It shall be the duty of every owner or keeper of a female dog or of a female cat to
keep such dog or cat confined in a proper enclosure when it is in heat, so that such
dog or cat may not be permitted to run in the yard or other open spaces outside an
enclosed structure. Should the owner or keeper of such dog or cat fail to provide
a proper enclosure in which it may be kept, the animal control officer may request
entry to the premises, and if entry is refused, the animal control director or his
authorized representative shall have recourse to every remedy at law to secure entry
in order to take and place such dog or cat in the animal shelter or some veterinary
hospital in the city, at the cost of such owner or keeper.