<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def label_stats(image, label_image):
 """ Get label statistics from image ANTsR function: `labelStats` Arguments --------- image : ANTsImage Image from which statistics will be calculated label_image : ANTsImage Label image Returns ------- ndarray ? Example ------- """

    image_float = image.clone('float')
    label_image_int = label_image.clone('unsigned int')

    libfn = utils.get_lib_fn('labelStats%iD' % image.dimension)
    df = libfn(image_float.pointer, label_image_int.pointer)
    #df = df[order(df$LabelValue), ]
    return pd.DataFrame(df)