If he wins the New York City mayoral primary, Zohran Mamdani will not be in totally uncharted territory. A long line of municipal-level socialists in the United States and around the world have been in his position before.