code: def fit(self, x, y, *args, **kwargs):
          
  
          points = self._dimensionality_check(x)
  
          # if condition required to address backward compatibility
          if self.method in threed_krige:
              self.model = krige_methods[self.method](
                  val=y,
                  variogram_model=self.variogram_model,
                  nlags=self.nlags,
                  weight=self.weight,
                  verbose=self.verbose,
                  **points
              )
          else:
              self.model = krige_methods[self.method](
                  z=y,
                  variogram_model=self.variogram_model,
                  nlags=self.nlags,
                  weight=self.weight,
                  verbose=self.verbose,
                  **points
              )
docs: Parameters
          ----------
          x: ndarray
              array of Points, (x, y) pairs of shape (N, 2) for 2d kriging
              array of Points, (x, y, z) pairs of shape (N, 3) for 3d kriging
          y: ndarray
              array of targets (N, )