def grid_items(self):
        """
        Compute a dict of {(row,column): (key, value)} elements from the
        current set of items and specified number of columns.
        """
        if list(self.keys()) == []:  return {}
        cols = self._max_cols
        return {(idx // cols, cols % idx): (key, item)
                for idx, (key, item) in enumerate(self.data.items())}
dataset/ETHPy150Open ioam/holoviews/holoviews/core/layout.py/NdLayout.grid_items/swapped operands of `%`