def bez2poly(bez, numpy_ordering=True, return_poly1d=False):
if is_bezier_segment(bez):<EOL><INDENT>bez = bez.bpoints()<EOL><DEDENT>return bezier2polynomial(bez,<EOL>numpy_ordering=numpy_ordering,<EOL>return_poly1d=return_poly1d)<EOL>
Converts a Bezier object or tuple of Bezier control points to a tuple
    of coefficients of the expanded polynomial.
    return_poly1d : returns a numpy.poly1d object.  This makes computations
    of derivatives/anti-derivatives and many other operations quite quick.
    numpy_ordering : By default (to accommodate numpy) the coefficients will
    be output in reverse standard order.
    Note:  This function is redundant thanks to the .poly() method included
    with all bezier segment classes.