code: def check_route_name_conflict(namespace):
      
  
      route_by_name = {}
      for route in namespace.routes:
          route_name = fmt_func(route.name, version=route.version)
          if route_name in route_by_name:
              other_route = route_by_name[route_name]
              raise RuntimeError(
                  'There is a name conflict between {!r} and {!r}'.format(other_route, route))
          route_by_name[route_name] = route
docs: Check name conflicts among generated route definitions. Raise a runtime exception when a
      conflict is encountered.