code: def grid_linspace(bounds, count):
      
      bounds = np.asanyarray(bounds, dtype=np.float64)
      if len(bounds) != 2:
          raise ValueError('bounds must be (2, dimension!')
  
      count = np.asanyarray(count, dtype=np.int)
      if count.shape == ():
          count = np.tile(count, bounds.shape[1])
  
      grid_elements = [np.linspace(*b, num=c) for b, c in zip(bounds.T, count)]
      grid = np.vstack(np.meshgrid(*grid_elements)
                       ).reshape(bounds.shape[1], -1).T
      return grid
docs: Return a grid spaced inside a bounding box with edges spaced using np.linspace.
  
      Parameters
      ---------
      bounds: (2,dimension) list of [[min x, min y, etc], [max x, max y, etc]]
      count:  int, or (dimension,) int, number of samples per side
  
      Returns
      -------
      grid: (n, dimension) float, points in the specified bounds