def index2coords(self, index):
        assert 0 <= index < self.m * self.n
        return divmod(index, self.n)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_generators.py/Knights.index2coords/original