def shapely_polygon(self):
        """Return the polygon in shapely.geometry.Polygon"""
        if self._shapely_polygon is None:
            assert self.polygon is not None
            self._shapely_polygon = geometry.Polygon(geometry.LineString(self.polygon))
        return self._shapely_polygon
Return the polygon in shapely.geometry.Polygon
metadrive/component/lane/abs_lane.py