code: def segment_intersection2(start0, end0, start1, end1):
      
      if NO_IMAGES:
          return
  
      line0 = bezier.Curve.from_nodes(stack1d(start0, end0))
      line1 = bezier.Curve.from_nodes(stack1d(start1, end1))
      ax = line0.plot(2)
      line1.plot(2, ax=ax)
      ax.axis("scaled")
      save_image(ax.figure, "segment_intersection2.png")
docs: Image for :func:`.segment_intersection` docstring.