def METHOD_NAME(spline, clean=True, calc_radii=False):
    knots = spline.bezier_points
    cyclic = spline.use_cyclic_u
    if len(knots) < 2:
        return
    radii = []
    # verts per segment
    r = spline.resolution_u + 1
    # segments in spline
    segments = len(knots)
    if not cyclic:
        segments -= 1
    master_point_list = []
    for i in range(segments):
        inext = (i + 1) % len(knots)
        knot1, knot2 = knots[i].co, knots[inext].co
        handle1, handle2 = knots[i].handle_right, knots[inext].handle_left
        bezier = knot1, handle1, handle2, knot2, r
        points = interpolate_bezier(*bezier)
        if segments == 1 and not cyclic:
            pass
        elif cyclic or (i < segments-1):
            points.pop()
        master_point_list.extend([v[:] for v in points])
    edges = generate_edges(n_verts=len(master_point_list), cyclic=cyclic)
    return master_point_list, edges, radii