code: def grid_points(chunks, sizes):
      cumchunks = [np.cumsum((0,) + c) for c in chunks]
      points = [x * size / x[-1] for x, size in zip(cumchunks, sizes)]
      return points
  
file_path: dask/dask/array/svg.py
imports: from __future__ import annotations
  import math
  import re
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: grid_points(chunks, sizes) and returns: points