code: def _coord2offset(self, coord):
          
          size = self.size
          offset = 0
          for dim, index in enumerate(coord):
              size //= self._normshape[dim]
              offset += size * index
          return offset
docs: Convert a normalized coordinate to an item offset.