def METHOD_NAME():
    array_np = np.array([0, 0, 0, 0, 0])
    array_num = num.array([0, 0, 0, 0, 0])
    array_np.setflags(0)
    array_num.setflags(0)
    expected_exc = ValueError
    with pytest.raises(expected_exc):
        array_np[2] = 1
    with pytest.raises(expected_exc):
        array_num[2] = 1