Exercise 17: Advanced

I've been stuck on this problem for ages.

The running result is (2,3), but there always be an error message of

“Test Failed: AssertionError: '[[inf 5. 6. 5. 12.]\n [ 5. inf 5. 4. 9.]\n [ 6. 5. inf 3. 12.]\n [ 5. 4. 3. inf 11.]\n [12. 9. 12. 11. inf]]\n[(2, 3)]' not found in ['(2, 3)', '(3, 2)']“

Could someone help me identify the problem?