def display_scenario_line(cls, polyline, type, surface, line_sample_interval=2) -> None:
        """
        Display a lane on a surface.

        :param lane: the lane to be displayed
        :param surface: the pygame surface
        :param two_side: draw two sides of the lane, or only one side
        """
        if MetaDriveType.is_yellow_line(type):
            color = (255, 175, 35)
        elif MetaDriveType.is_road_boundary_line(type):
            color = (100, 100, 100)
        else:
            color = (175, 175, 175)
        if MetaDriveType.is_road_line(type) or MetaDriveType.is_road_boundary_line(type):
            # if len(waymo_poly_line.segment_property) < 1:
            #     return
            if MetaDriveType.is_broken_line(type):
                points_to_skip = math.floor(PGDrivableAreaProperty.STRIPE_LENGTH * 2 / line_sample_interval) * 2
            else:
                points_to_skip = 1
            for index in range(0, len(polyline) - 1, points_to_skip):
                if index + 1 < len(polyline):
                    s_p = polyline[index]
                    e_p = polyline[index + 1]
                    pygame.draw.line(
                        surface,
                        color,
                        surface.vec2pix([s_p[0], s_p[1]]),
                        surface.vec2pix([e_p[0], e_p[1]]),
                        # max(surface.pix(LaneGraphics.STRIPE_WIDTH),
                        surface.pix(PGDrivableAreaProperty.LANE_LINE_WIDTH) * 2
                    )
        elif type == "center_lane" or type is None:
            pass

        Display a lane on a surface.

        :param lane: the lane to be displayed
        :param surface: the pygame surface
        :param two_side: draw two sides of the lane, or only one side
        
metadrive/obs/top_down_obs_impl.py