def check_route_name_conflict(namespace):
route_by_name = {}<EOL>for route in namespace.routes:<EOL><INDENT>route_name = fmt_func(route.name, route.version)<EOL>if route_name in route_by_name:<EOL><INDENT>other_route = route_by_name[route_name]<EOL>raise RuntimeError(<EOL>'<STR_LIT>'.format(other_route, route))<EOL><DEDENT>route_by_name[route_name] = route<EOL><DEDENT>
Check name conflicts among generated route definitions. Raise a runtime exception when a
conflict is encountered.