code: 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)]
  
file_path: PaddleSeg/contrib/AutoNUE/core/predict_ensemble.py
imports: import os
  import math
  import cv2
  import numpy
  import paddle
  from paddleseg import utils
  import core.infer_ensemble
  from paddleseg.utils import logger, progbar
label_desc: Use image node_id 2 for calling a global function with example usage: partition_list(arr, m) and returns: unknown