code: def interp(self):
          
          if self.ndim == 0:
              return 'nearest'
          elif all(interp == self.interp_byaxis[0]
                   for interp in self.interp_byaxis):
              return self.interp_byaxis[0]
          else:
              return self.interp_byaxis
docs: Interpolation type of this discretization.