'scalar indexed assignment'

def test_setitem(self):

    arr = np.arange(5)
    setitem_usecase(arr, 1, 42)
    self.assertEqual(arr.tolist(), [0, 42, 2, 3, 4])
    setitem_usecase(arr, np.array(3).astype(np.uint16), 8)
    self.assertEqual(arr.tolist(), [0, 42, 2, 8, 4])
    arr = np.arange(9).reshape(3, 3)
    setitem_usecase(arr, 1, 42)
    self.assertEqual(arr.tolist(), [[0, 1, 2], [42, 42, 42], [6, 7, 8]])
