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/PanopticSeg/paddlepanseg/core/predict.py
imports: import os
  import os.path
  import math
  import numpy
  import paddle
  import paddleseg
  from paddleseg.utils import logger, progbar
  from PIL import Image
  from paddlepanseg.utils.visualize import visualize_instance, visualize_semantic, visualize_panoptic
  from paddlepanseg.cvlibs import build_info_dict
  from .None import infer
label_desc: Use image node_id 2 for calling a global function with example usage: partition_list(arr, m) and returns: unknown