def _construct_broken_line(self, lane, lateral, line_color, line_type):
        """
        Lateral: left[-1/2 * width] or right[1/2 * width]
        """
        assert MetaDriveType.is_broken_line(line_type)
        points = lane.get_polyline(2, lateral)
        for index in range(0, len(points) - 1, 2):
            if index + 1 < len(points):
                node_path_list = self._construct_lane_line_segment(
                    points[index], points[index + 1], line_color, line_type
                )
                self._node_path_list.extend(node_path_list)

        Lateral: left[-1/2 * width] or right[1/2 * width]
        
metadrive/component/pgblock/pg_block.py