. . "ty, city, town or other political subdivision of the commonwealth may not consider race, color or national origin in the enforcement of this section except to the extent permitted by the United States or the constitution of the commonwealth. (d) In the enforcement of this section, an alien's immigration status may be determined by: (i) a law enforcement officer who is authorized by the federal gov" . . .