def is_valid(self):
    return (RoadPolygon.from_nodes(self.sample_nodes).is_valid() and self.road_bbox.contains(RoadPolygon.from_nodes(self.control_nodes[1:(- 1)])))
def is_valid(self):
    return (RoadPolygon.from_nodes(self.sample_nodes).is_valid() and self.road_bbox.contains(RoadPolygon.from_nodes(self.control_nodes[1:(- 1)])))