Is there a way to use cv2.approxPolyDP to approximate open curve?

I would like to approximate smooth lines with chain of line segments. cv2.approxPolyDP in OpenCV 3.4 made a good result in the case of closed curve. Origin close curve: Approximated close curve: …