An inspection warrant is a written order in the name of a county or municipality signed by a magistrate judge or circuit court judge, directed to a county or municipal official, commanding him to conduct any inspection required or authorized by state or local law or regulation relating to building, housing, fire, safety, plumbing, electrical, health, or zoning.
SDCL 34-43-1