the indexing method should be implemented based on evaluation of the expression inside. However, using modulo arithmetic seems not producing correct output. Given an ndarray a = ...