code: def curve_subdivide(curve, left, right):
      
      if NO_IMAGES:
          return
  
      figure = plt.figure()
      ax = figure.gca()
      add_patch(ax, curve._nodes, "gray")
      ax = left.plot(256, ax=ax)
      line = ax.lines[-1]
      add_patch(ax, left._nodes, line.get_color())
      right.plot(256, ax=ax)
      line = ax.lines[-1]
      add_patch(ax, right._nodes, line.get_color())
      ax.axis("scaled")
      ax.set_xlim(-0.125, 2.125)
      ax.set_ylim(-0.125, 3.125)
      save_image(ax.figure, "curve_subdivide.png")
docs: Image for :meth`.Curve.subdivide` docstring.