def getLastLaneWidthIdx(self):
        """Returns the index of the last width sector of the lane"""

        numWidths = len(self._widths)

        if numWidths > 1:
            return numWidths - 1

        return 0
Returns the index of the last width sector of the lane
metadrive/utils/opendrive/elements/roadLanes.py