144(2)If this Act or any other Act or a by-law authorizes an inspection or requires anything to be inspected by a local government, a by-law enforcement officer may, subject to any restrictions set out in the officer’s appointment, after giving reasonable notice to the owner or occupant of the land, building or other structure to be entered to carry out the inspection,