Unless otherwise provided by the state building code, the local inspector shall enforce the state building code as to any building or structure within the city or town from which he is appointed, including any building or structure owned by any authority established by the general court but not owned in whole or in part by the commonwealth, and the state building code shall be the code for all bui