This tool converts vector polygons into polylines, simply by modifying the Shapefile geometry type.
lines_to_polygons
def polygons_to_lines(self, input: Vector) -> Vector: ...