code: def curve_specialize(curve, new_curve):
      
      if NO_IMAGES:
          return
  
      ax = curve.plot(256)
      interval = r"$\left[0, 1\right]$"
      line = ax.lines[-1]
      line.set_label(interval)
      color1 = line.get_color()
      new_curve.plot(256, ax=ax)
      interval = r"$\left[-\frac{1}{4}, \frac{3}{4}\right]$"
      line = ax.lines[-1]
      line.set_label(interval)
      ax.plot(
          curve._nodes[0, (0, -1)],
          curve._nodes[1, (0, -1)],
          color=color1,
          linestyle="None",
          marker="o",
      )
      ax.plot(
          new_curve._nodes[0, (0, -1)],
          new_curve._nodes[1, (0, -1)],
          color=line.get_color(),
          linestyle="None",
          marker="o",
      )
      ax.legend(loc="lower right", fontsize=12)
      ax.axis("scaled")
      ax.set_xlim(-0.375, 1.125)
      ax.set_ylim(-0.75, 0.625)
      save_image(ax.figure, "curve_specialize.png")
docs: Image for :meth`.Curve.specialize` docstring.