def partition_list(arr, m):
    """split the list 'arr' into m pieces"""
    n = int(math.ceil(len(arr) / float(m)))
    return [arr[i:i + n] for i in range(0, len(arr), n)]
split the list 'arr' into m pieces
contrib/AutoNUE/core/predict_generate_autolabel.py