code: def segment_intersection1(start0, end0, start1, end1, s):
      
      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(256, ax=ax)
      (x_val,), (y_val,) = line0.evaluate(s)
      ax.plot([x_val], [y_val], color="black", marker="o")
      ax.axis("scaled")
      save_image(ax.figure, "segment_intersection1.png")
docs: Image for :func:`.segment_intersection` docstring.