code: def unflatten(flat_array, array_shapes):
      i = 0
      arrays = []
      for shape in array_shapes:
          size = np.prod(shape, dtype=np.int)
          array = flat_array[i : (i + size)].reshape(shape)
          arrays.append(array)
          i += size
      assert len(flat_array) == i
      return arrays
  
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: unflatten(flat_array, array_shapes) and returns: arrays