code: def build_point_grid(n_per_side: int) -> np.ndarray:
      """Generates a 2D grid of points evenly spaced in [0,1]x[0,1]."""
      offset = 1 / (2 * n_per_side)
      points_one_side = np.linspace(offset, 1 - offset, n_per_side)
      points_x = np.tile(points_one_side[None, :], (n_per_side, 1))
      points_y = np.tile(points_one_side[:, None], (1, n_per_side))
      points = np.stack([points_x, points_y], axis=-1).reshape(-1, 2)
      return points
  
imports: import numpy
  import torch
  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 8 for calling a global function with example usage: build_point_grid(n_per_side) and returns: points