Every municipality shall have power to provide for the examination by duly authorized officers at reasonable hours of dwellings, buildings, and enclosures to ascertain whether in a dangerous condition, and to provide for remedying such condition.
SDCL 9-33-10