Within its jurisdiction and specific to those areas mandated by the higher body, a municipal by-law is no different than any other law of the land, and can be enforced with penalties, challenged in court and must comply with other laws of the land, such as the country's constitution.
By section 94 of the Constitution of Japan, regional governments have limited autonomy and legislative powers to create by-laws.