def METHOD_NAME(mesh):
    verts = np.array([v.co for v in mesh.vertices])
    edges = np.array([e.vertices for e in mesh.edges])
    lens = np.linalg.norm(verts[edges[:, 0]] - verts[edges[:, 1]], axis=-1)
    return lens.min(), lens.max()