code: def sample_ogrid(self, ogrid: np.array) -> np.array:
          
          if len(ogrid) != self.dimensions:
              raise ValueError(
                  "len(ogrid) must equal self.dimensions, "
                  "%r != %r" % (len(ogrid), self.dimensions)
              )
          ogrids = [np.ascontiguousarray(array, np.float32) for array in ogrid]
          out = np.ndarray([array.size for array in ogrids], np.float32)
          lib.NoiseSampleOpenMeshGrid(
              self._tdl_noise_c,
              len(ogrids),
              out.shape,
              [ffi.cast("float*", array.ctypes.data) for array in ogrids],
              ffi.cast("float*", out.ctypes.data),
          )
          return out
docs: Sample an open mesh-grid array and return the result.
  
          Args
              ogrid (Sequence[Sequence[float]]): An open mesh-grid.
  
          Returns:
              numpy.ndarray: An array of sampled points.
  
                  The ``shape`` is based on the lengths of the open mesh-grid
                  arrays.
                  The ``dtype`` is `numpy.float32`.