code: def poly2bez(poly, return_bpoints=False):
      
      bpoints = polynomial2bezier(poly)
      if return_bpoints:
          return bpoints
      else:
          return bpoints2bezier(bpoints)
docs: Converts a cubic or lower order Polynomial object (or a sequence of
      coefficients) to a CubicBezier, QuadraticBezier, or Line object as
      appropriate.  If return_bpoints=True then this will instead only return
      the control points of the corresponding Bezier curve.
      Note: The inverse operation is available as a method of CubicBezier,
      QuadraticBezier and Line objects.