code: def build_all_layer_point_grids(
      n_per_side: int, n_layers: int, scale_per_layer: int
  ) -> List[np.ndarray]:
      """Generates point grids for all crop layers."""
      points_by_layer = []
      for i in range(n_layers + 1):
          n_points = int(n_per_side / (scale_per_layer**i))
          points_by_layer.append(build_point_grid(n_points))
      return points_by_layer
  
imports: import numpy
  import paddle
  import math
  from copy import deepcopy
  from itertools import product
  from typing import Any, Dict, Generator, ItemsView, List, Tuple
label_desc: Use image node_id 9 for calling a global function with example usage: build_all_layer_point_grids(n_per_side, n_layers, scale_per_layer) and returns: points_by_layer