def METHOD_NAME(self, edges):
    """Create the SUMO edge XML node(s) matching with the Webots road."""
    if self.startJunctionID == self.endJunctionID:
        print('Warning: cannot export edge "%s" because start and end junctions are identical.' % self.id)
        return
    if len(self.wayPoints) < 2:
        print('Warning: cannot export edge "%s" because it has less than 2 way-points.' % self.id)
        return
    laneWidth = self.width / self.lanes
    # The original path should be slightly shifted if the case where the
    # forwardLanes and backwardLanes are not matching.
    originalCoords = [[x + self.translation[0], y + self.translation[1]] for [x, y, z] in self.wayPoints]
    originalLineString = LineString(originalCoords)
    if self.oneWay:
        originalLineString = originalLineString.parallel_offset(0.5 * laneWidth * self.forwardLanes, 'left')
    else:
        offset = (self.forwardLanes - self.backwardLanes) * laneWidth * 0.5
        if offset > 0.0:
            originalLineString = originalLineString.parallel_offset(offset, 'left')
        elif offset < 0.0:
            originalLineString = originalLineString.parallel_offset(offset, 'left')
            originalLineString = LineString(list(originalLineString.coords[::-1]))
    if isinstance(originalLineString, MultiLineString):
        originalPath = originalCoords
    else:
        originalPath = list(originalLineString.coords)
    # Create the forward edge
    if self.forwardLanes > 0:
        edge = ET.SubElement(edges, 'edge')
        edge.attrib['id'] = self.id
        edge.attrib['from'] = self.startJunctionID
        edge.attrib['to'] = self.endJunctionID
        edge.attrib['numLanes'] = str(self.forwardLanes)
        edge.attrib['width'] = str(laneWidth)
        edge.attrib['shape'] = Road._pathToString(originalPath)
    # Create the backward edge
    if self.backwardLanes > 0:
        edge = ET.SubElement(edges, 'edge')
        edge.attrib['id'] = '-' + self.id
        edge.attrib['to'] = self.startJunctionID
        edge.attrib['from'] = self.endJunctionID
        edge.attrib['numLanes'] = str(self.backwardLanes)
        edge.attrib['width'] = str(laneWidth)
        edge.attrib['shape'] = Road._pathToString(originalPath[::-1])