code: def axes(self):
          
          return tuple(i for i in range(self.domain.ndim)
                       if self.domain.shape[i] != self.range.shape[i])
docs: Dimensions in which an actual resizing is performed.